Go Back  DVD Talk Forum > General Discussions > Tech Talk
Reload this Page >

Add desktop shortcut for Shutdown and/or Restart in XP?

Tech Talk Discuss PC Hardware, Software, Internet and Other Technology

Add desktop shortcut for Shutdown and/or Restart in XP?

Old 07-22-05, 11:34 AM
  #1  
DVD Talk Platinum Edition
Thread Starter
 
Join Date: Apr 2000
Location: Maumee, OH, USA
Posts: 3,338
Received 3 Likes on 2 Posts
Add desktop shortcut for Shutdown and/or Restart in XP?

I would like to create a desktop shortcut for Restart and Shutdown commands in Windows XP Pro.

I'm using a policy to remove Start-Shutdown because I only want Logoff to be available from the Ctrl-Alt-Del menu. If I can get Shutdown and/or Restart added as desktop icons, I should be all set.
Old 07-22-05, 12:41 PM
  #2  
Senior Member
 
Join Date: Dec 2001
Location: Twin Cities
Posts: 903
Likes: 0
Received 0 Likes on 0 Posts
This is how I did it on one of my PCs:

Create a new shortcut on your desktop (Right-click, New, Shortcut). Browse to Windows\System32 and select Shutdown.exe. Click Next, name it whatever you want. After it's created, right-click on the new shortcut, select properties, and on the Shortcut tab, after "C:\WINDOWS\SYSTEM32\SHUTDOWN.EXE" (in Target) type -s. (So it would look like this: C:\WINDOWS\SYSTEM32\SHUTDOWN.EXE -s)

This will shut down your computer. Instead of the -s, you could type -r to shut down and reboot. Here are the options you could type:

-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)
Old 07-22-05, 12:42 PM
  #3  
DVD Talk Platinum Edition
Thread Starter
 
Join Date: Apr 2000
Location: Maumee, OH, USA
Posts: 3,338
Received 3 Likes on 2 Posts
Nevermind, I figured it out. I just created a .bat file with:

c:\windows\system32\shutdown.exe -s for Shutdown
and
c:\windows\system32\shutdown.exe -r for Restart

Then put shortcuts on the desktop to the .bat files.

Edit: I figured it out before the post above, but thanks!

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Thread Tools
Search this Thread

Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service - Do Not Sell My Personal Information

Copyright 2018 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.