Giter Club home page Giter Club logo

awesome-windows-command-line's Introduction

Awesome

awesome windows

An awesome & curated list of commands in Windows.

Table of Contents

Appearance

Wallpaper

Set Wallpaper

reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v Wallpaper /t REG_SZ /d  wallpaper_path /f

RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters
 
* Works only for bmp images. If you have .jog or .jpeg images you can’t set them as wallpaper from command line.*

Automation

Automatic Shutdown

sleep 9000; shutdown -s

OR

at 03:30:00PM shutdown -s

OR

schtasks /create /sc once /tn "auto shutdown my computer" /tr "shutdown -s" /st 15:30

* Schedule daily shutdown *

At 11:00:00PM /every:M,T,W,TH,F,SA,SU shutdown -s

* Schedule automatic resart *

at 11:00:00PM shutdown -r

* For Sleep *

sleep number_of_seconds_to_wait; shutdown -r


System Configuration

Hibernation

Enable/Disable Hibernation

powercfg /hibernate on
powercfg /hibernate off

* Should be run from adminstrator command line. *

Serial Number

serial number for RAM, motherboard, hard disk


wmic memorychip get serialnumber
wmic diskdrive get serialnumber
wmic baseboard get serialnumber
wmic cdrom where drive='d:' get SerialNumber

Computer Name

Changing Computer Name from command line.

WMIC computersystem where caption='currentname' rename newname

WiFi

Disable WiFi connection

netsh interface set interface name="Wireless Network Connection" admin=DISABLED

Firewall

Enable/Disable Firewall

* For XP/Server 2003 *

netsh firewall set opmode mode=ENABLE
netsh firewall set opmode mode=DISABLE

* For later versions *

netsh advfirewall set currentprofile state on
netsh advfirewall set  currentprofile state off

netsh advfirewall set domainprofile state on
netsh advfirewall set domainprofile state off

netsh advfirewall set privateprofile state on
netsh advfirewall set privateprofile state off

netsh advfirewall set publicprofile state on
netsh advfirewall set publicprofile state off

netsh advfirewall set  allprofiles state on
netsh advfirewall set  allprofiles state off

* These above commands should be run from adminstrator command line. *

Time Zone

Set Time Zone

* Windows 7 *

tzutil /s  "Time zone Identifier"

* Here, Time zone Identifier could be Pacific Standard Time, Central America Standard Time. *

* Get the current Time Zone. *

tzutil /g

* Get the list of Time Zones. *

tzutil /l

* In Windows XP *

RunDLL32.exe shell32.dll,Control_RunDLL timedate.cpl,,/Z Central Standard Time

Join a Computer to Domain

netdom.exe join %computername% /domain:DomainName /UserD:DomainName\UserName /PasswordD:Password

* To remove a computer from a Domain *

netdom.exe remove %computername% /domain:Domainname /UserD:DomainName\UserName /PasswordD:Password

Download netdom.exe from here

User Settings

Enable/Disable Auto Login

Download Autologin from here

Autologon  userName domainName password

Set default printer in Windows 7

wmic printer get name,default

* Get Default printer *

wmic printer where default='TRUE' get name

* Set Default Printer *
wmic printer where name='printername' call setdefaultprinter

awesome-windows-command-line's People

Contributors

rahulkapoor90 avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.