G³ Solutions
Technology Defined
kgiii.info
G³ Home
Microsoft® Windows®
All Platforms
98
ME
2000
> > XP < <
General
Automatic Login
Changing Your Boot Screen
Chkdsk, the reality
ClearType Tuner
Corrupt Profile
Desktop Items
Disable Balloon Tips
Disable CD AutoPlay
Disable Error Reporting
Error: 16-bit app on XP SP2
Management Console Snap-ins
Missing CD/DVD Drives
Missing Icons and Taskbar
Prevent Forgotten Passwords
Repair Installation of XP
Repairing a Multi-Boot
Remove MSN/Passport Info
Show File Attributes
Using Special Characters
Windows XP Service Pack 2
XP Pro - Password Expiration
Run Control Panel Commands
Tips / Tweaks
Customize the Start Menu
Drop Shadows for Icon Labels
Explorer, Separate Process
Hide All Desktop Icons
Increase IDE disk Speed
Kill Search Dog Properly Shutdown Shortcuts
Security
Delete the index.dat Files
Temporary Admin Rights
Password Protect Guest Account
Advanced
Admin on Welcome Screen
Admin Tools in Start Menu
Access 'Hidden' Uninstalls
Built-in ZIP File Support
Cleaning the Prefetch
Disable Auto-Reboot on Error
Never Reactivate
Problems with boot.ini
Using an OEM Key
Networking
Disable NetBIOS over TCP/IP
Kill QoS Bandwidth Limitation
Netmeeting in Windows XP
Network Diagnostics
Security
Links
G³ Blog
G³ Forum
Web Site Hosting
Microsoft® Windows® > XP
 Tips / Tweaks

Shutdown Shortcuts

Here's a pretty simple way to make either shut your PC down or reboot with a single click of the mouse.

  1. Find an area you want to make a shortcut
  2. Right click and select New > Shortcut
  3. Enter in one of the below options, name it, and click Okay.

Shutdown:
The command would be "shutdown -s -t 00"

Restart:
The command would be "shutdown -r -t 00"

Other Options:
From DOS help for shutdown.exe:

Usage: shutdown.exe [ -i | -l | -s | -r | -a ] [ -f ] [-m \\computername] [ -t xx ] [ -c "comment" ] [ -d up:xx:yy ]
     
No args   – Display this message (same as "-?")
-i   – Display GUI interface, must be the first option
-l   – Log off (cannot be used with -m option)
-s   – Shutdown the computer
-r   – Shutdown and restart the computer
-a   – Abort a system shutdown
-m \\computername   – Remote computer to shutdown/restart/abort
-t xx   – Set timeout for shutdown to xx seconds
-c "comment"   – Shutdown comment (maximum of 127 characters)
-f   – Forces running applications to close without warning
-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)

To see these for yourself, press the Start button and then Run, type "cmd" (without the quotes), press enter, and then type "shutdown.exe" (without the quotes) and press enter.

OS: XP > Tips / Tweaks
Date: 09/25/05

Back to top