Windows Tips: What's on the Menu? You Decide
Customize menus and accelerator keys; force Windows to exit or reboot.
Scott Dunn
Force Windows to Exit or Reboot
In January's Windows Tips, I showed how to create shortcuts that automate the process of shutting down Windows or rebooting your computer. But a problem arises if your PC is on a network: Shutting down Windows in that situation can trigger a message box reminding you that you are connected to another computer. Windows then asks for permission to proceed. If you're using Task Scheduler to automate a shutdown or reboot, you may not be at your PC to respond, so Windows will simply sit there with the prompt displayed for all eternity--or at least until someone responds by clicking Yes or No. So much for automation.
Fortunately, as Richard Schauer of Everett, Washington, points out, you can force Windows to shut down or reboot and have it ignore all open applications, documents, and message prompts. First, if you haven't already done so, create your shutdown or reboot shortcut: Right-click the desktop or in the desired folder and choose New, Shortcut. Type the appropriate command line, but add 4 to the numeric parameter at the end.
For example, the command line normally used for shutting down Windows is 'rundll32.exe shell32.dll,SHExitWindowsEx 1'. Add 4 to the final parameter, and now the 'force shutdown' line becomes 'rundll32.exe shell32.dll,SHExitWindowsEx 5'. To force a reboot, change the '5' to a 6 (equivalent to adding 4 to the normal reboot option of 2). To complete the shortcut, click Next, type a name, and click Finish.
Characters in this command line are case-sensitive, so watch your capitalization. Also, take care not to add a space after the comma. A typo in the January issue included a space, to the consternation of many readers. Deleting the space should solve that problem.
The downside: If you use this command, Windows will ignore all network connection prompts and also any prompts to save open documents. If any open documents have unsaved changes when you force a shutdown, those changes will be lost for good. So use this technique only when you're certain you won't lose data.
Acer Laptop Center
The Best of PC World
- Great year-end deals

for small business! -
Get 24/7 live remote AT&T Tech Support 360* service along with select Lenovo* PCs (with Intel® Core™ 2 Duo processors) and save up to 200!
-
HP EliteBook* 6930p Notebook with Intel® vPro™ technology and a free HP Basic Docking Station - $641 instant savings!
- *Other names and brands may be claimed as the property of others. ©2009 Intel Corporation. Intel, the Intel logo, vPro and Core trademarks of Intel Corporation in the United States and other countries. All rights reserved.
Dell End of Year Deals
-
Ring in the New Year with Huge Deals on Dell Computers
Up to 30% Popular Dell Laptops, up to 25% off Popular Dell Desktops. Sales ends 12/31 5AM EST.
Focus on Personal Productivitysponsored by Microsoft
- Personal Finance 2.0 These free and fee-based Web services not only aggregate data from your online bank accounts, they give you tools for managing your money.
- High-Tech Travel Tips Plenty of stories provide advice for elite mobile professionals. But what about you, the unproductive traveler?
People who read this also read:
Best Prices on System Utilities
Parallels Desktop 4.0 for Mac (Full Product)Price: $49.99
Fusion 3Price: $69.99
2009 ProfessionalPrice: $29.00
Registry Mechanic 8Price: $22.50
Disk Director Suite 10.0 (Full Product)Price: $24.76
Prosoft Drive Genius 2Price: $49.88
- Perfect Printing Solutions Find just the right All-in-One Printer for you from HP. Visit the HP Resource Center.
- Acer Laptop Center Forget the Mouse...check out the next generation multi-gesture touch screen technology from Acer.
- Dell Shopping Center Check out great deals from Dell!
Cameras
Camcorders
Cell Phones
Components
Desktops
HDTV
Home Theater
GPS
Laptops
Monitors
MP3 Players
Networking &
Printers
Storage








