Here is some switches listed below please follow these steps
How to use these switches
Open command prompt by using WindowsKey + R and type cmd(command)
Then a new command prompt opens
How To Use Shutdown Switches:
Specify Time
shutdown -s -t 60
Shutdown A Remote Computer
shutdown -s -m \\desktop -t 45
Cancel Shutdown
Let’s say that you need to cancel a shutdown in progress. Go to the computer in question, hit Windows Key + R then type command below:
shutdown -a
No Switches | Display information about the shutdown command, same as typing “-?” |
-i | Display a GUI. It must be the first switch |
-l | Log off the user (This cannot be used on a remote machine: “-m” switch) |
-s | Shutdown the computer |
-r | Restart the computer |
-a | Cancels a system shutdown already in progress |
-f | Forces running applications to close without warning |
-m \\computername | Instruct a remote computer to shutdown (can be used with the restart & abort switches) |
-t xx | Set a given time for shutdown, in seconds |
-c “comment” | Shutdown comment (maximum of 127 characters) |
-d [u] [p]:xx:yy | The reason code for the shutdown: u is the user code p is a planned shutdown code xx is the major reason code (positive integer less than 256) yy is the minor reason code (positive integer less than 65536) |
0 comments:
Post a Comment