A collection of 100+ Windows running commands, a must-have for Windows installation masters


Command details for shutting down, restarting, logging off, and hibernating the computer:

用法: shutdown [/i | /l | /s | /sg | /r | /g | /a | /p | /h | /e | /o] [/hybrid] [/soft] [/fw] [/f]
    [/m \\computer][/t xxx][/d [p|u:]xx:yy [/c "comment"]]

    No parameters Show help. This is the same as typing /?.
    /? Show help. This is the same as not typing any options.
    /i Display the graphical user interface (GUI).
               This must be the first option.
    /l Log out. This cannot be used with the /m or /d options.
    /s Shut down the computer.
    /sg Shut down the computer. On the next startup, if auto-restart login is enabled, the last interactive user will be automatically logged in and locked.                After logging in, restart any registered applications.     /r Completely shut down and restart the computer.     /g Completely shut down and restart the computer. After restarting the system, If the automatic restart login is enabled, it will be automatically logged in and lock the last interactive user.                After logging in, restart any registered applications.     /a Abort system shutdown.                This can only be used during a timeout.                Use with /fw to clear any outstanding boot to firmware.     /p Shut down the local computer without timeout or warning.                Can be used with the /d and /f options.     /h Hibernate the local computer.                Can be used with the /f option.     /hybrid Performs a computer shutdown and prepares it for a quick startup.                Must be used with the /s option.     /fw Used in conjunction with the shutdown option, causes the next boot to go to the                firmware user interface.     /e Record the reason why the computer shut down unexpectedly.     /o Go to the Advanced Boot Options menu and restart your computer.                Must be used with the /r option.     /m \\computer specifies the target computer.     /t xxx Set the timeout before shutdown to xxx seconds.                Valid range is 0-315360000 (10 years), default value is 30.                The /f parameter is                         /f parameter.     /c "comment" Comments on the reason for restart or shutdown.                A maximum of 512 characters is allowed.     /f Forcefully close a running application without warning the user first.                When the value greater than 0 is  , the implicit /f parameter is shown as /f parameters.     /d [p|u:]xx:yy Provides the reason for restart or shutdown.                p Indicates that the restart or shutdown is planned.                u Indicates that the reason is user-defined.                having being done without p and u                                                                   having been restarted or shut down                xx is the main reason number (a positive integer less than 256).                yy is the secondary cause number (a positive integer less than 65536). 






































Tool name Command ("-" can be replaced by "/")
Shut down shutdown -s
Restart shutdown -r
Log out shutdown -l
hibernate shutdown -h
Cancel shutdown shutdown -a
Scheduled shutdown shutdown -s -t 3600(Shut down after 3600 seconds)
About Windows winver
Add device

Guess you like

Origin blog.csdn.net/qq_37860634/article/details/134344177