How do I enter a shutdown description from the command line? - 27 Apr 2001

John Savill

April 26, 2001

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A. In Windows XP, the new version of shutdown.exe (the tool used to shutdown/reboot from the command line) contains support for tracker descriptions via the -d (description/reason code) and-c (comment) attributes. For example,

shutdown -t 10 -d up:125:1 -c "Testing"

shuts down the system in 10 seconds, with a description of user-defined, planned, major reason 125, minor reason 1, and a comment of "Testing."

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like