====== Command Helps On Windows ====== ==== How to reboot server from command line ==== shutdown -Available Options /? Displays the Help listing /i Displays the graphical user interface (GUI); it must be the first option /l Logs off the current user; it cannot be used with the /d or /m options /s Shuts down the computer /r Shuts down and restarts the computer /g Shuts down and restarts the computer and then restarts any registered applications /a Aborts system Shutdown /p Turns off the local computer with no timeout or warning /h Hibernates the local machine /e Documents the reason for shutting down the computer /m Specifies the target computer; it is used with \\computername /t xxx Where xxx is the number of seconds before Shutdown /c “comment” Where “comment” is the reason for the Shutdown or restart /f Forces running applications to close without warning users /d [p|u:]xx:yy Provides the reason for the Shutdown action: p = planned; u= unplanned; xx supplies the major reason code; yy = supplies the minor reason code ==== Remote Desktop - shortcut for guest screen ==== CTRL+ALT+END: Open the Microsoft Windows NT Security dialog box (CTRL+ALT+DEL) ALT+PAGE UP: Switch between programs from left to right (CTRL+PAGE UP) ALT+PAGE DOWN: Switch between programs from right to left (CTRL+PAGE DOWN) ALT+INSERT: Cycle through the programs in most recently used order (ALT+TAB) ALT+HOME: Display the Start menu (CTRL+ESC) CTRL+ALT+BREAK: Switch the client computer between a window and a full screen ALT+DELETE: Display the Windows menu CTRL+ALT+Minus sign (-): Place a snapshot of the entire client window area on the Terminal server \\ clipboard and provide the same functionality as pressing ALT+PRINT SCREEN on a local computer (ALT+PRT SC) CTRL+ALT+Plus sign (+): Place a snapshot of the active window in the client on the Terminal server \\ clipboard and provide the same functionality as pressing PRINT SCREEN on a local computer (PRT SC) ==== Batch IP Alias Add using netsh ==== how to add multiple IP as an alias to windows. FOR /L %I IN (1,1,200) DO netsh interface ip add address "Local Area Connection" 192.168.1.%I 255.255.255.0 Above command add IP range **192.168.1.1** to **192.168.1.200** to Interface "**Local Area Connection**"\\ For loop setup \\ "first number is starting number"\\ "second number is stepping"\\ "third number is ending number"\\ Make sure you modify your interface name according to need.\\ As it must match existing one.\\ [[http://www.howconfig.com/windows/batch-adding-multiple-ip-addresses-to-windows-server-with-netsh| Information used at]] ==== List all Scheduled Task ==== In windows there is two command which can used to schedule task. schtasks at Simply use help for above command to get more detail on how to use