Discussion on:
View:
Show:
These shortcut tweaks can be real time savers, that is for sure. Do you take advantage of them? What other little tweaks are you especially fond of and willing to share?
The targets of these shortcuts work in XP (SP3) and Vista as well.
good info on shortcuts. I am only a novice that likes to read TechRepublic.
I understand that what I am wishing for would not be a Windows shortcut per se, but clicking a command to restart in safe mode would be a handy tool when troulbeshooting.
I understand that what I am wishing for would not be a Windows shortcut per se, but clicking a command to restart in safe mode would be a handy tool when troulbeshooting.
Windows Key + Right Arrow. That was the only reason I gave Windows 7 a try.
for the program would be considerably more useful than how to change the desktop icon for it...or at least a link to the parameter list.
Just as with most Windows commands, simply putting a -? at the end of the command (in a DOS window) will display all parameters. For XP they are:
C:\>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 [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)
C:\>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 [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)
I'm not convinced that this is a necessary shortcut any more. It used to take several clicks to shut down a computer. In W7, it's two. Click on the Start button and click on "Shut down" . To save 0ne click, You would create a shortcut tht would shut down the computer if inadvertantly launched (two click, by the way).
Pinning it to the Start menu makes no sense at all. It saves me nothing.
Hank Arnold (MVP)
Pinning it to the Start menu makes no sense at all. It saves me nothing.
Hank Arnold (MVP)
I use it all the time to schedule shutdown in unattended mode. Usually if I'm running a job overnight and I want the machine to shutdown once it's finished, I use the -t option and specify the time interval before shutdown occurs. Remember the -t option is in seconds so 3600 seconds equals 1 hour.
You can use it in Windows Scheduler to shutdown at a specific time. Also make it the last entry in a batch job to shutdown, reboot or log off.
You can use it in Windows Scheduler to shutdown at a specific time. Also make it the last entry in a batch job to shutdown, reboot or log off.
If you are using a remote desktop connection you can't ahut the PC down via the start menu so I use this shortcut on the desktop of the remote machine, xxxx:\Windows\System32\taskkill.exe /im explorer.exe where xxxx is your system drive
These shortcuts or the command are great for when you are remotely connected to a computer via "Remote Destkop". RDP does not show the shutdown button on the Start menu. I shows "Log Off" for the remote operator. By using the shortcut, you can restart or shutdown the system remotely.
This is great, but what I use the most frequently is KEYBOARD shortcuts.
How can we make keyboard shortcuts like the old Ctrl+U, etc.
How can we make keyboard shortcuts like the old Ctrl+U, etc.
Ok. is it just me or is this stuff really necessary? So you neec 2 click instead of one to shutdown Windows through the menu [or 3 for the others]. Sounds like we're getting lazy!
How can I make a shortcut to switch user?
For a log off, enter "shutdown -l -t 00"
That's the letter l, not the number 1.
Then the new user has to log on.
BTW, -a aborts shutdown (except log off) & -f closes running apps - in XP, anyway.
That's the letter l, not the number 1.
Then the new user has to log on.
BTW, -a aborts shutdown (except log off) & -f closes running apps - in XP, anyway.
How to write a shutdown shortcut that does not effect a workstation powerdown. For example, the same can be effected by holding the shift-key while using the mouse pointer to re-start; effecting a software, not a power, reset.
Hibernate works fine...Sleep -for me- puts HP laptop into hibernation, also...anyone get the sleep shortcut to work?
Sleep computer does not work for me (Windows 7 Home Premium X64), it hybernates instead off.
...but the use of the rundll32.exe program in this fashion is ultimately passing random parameters to the function that does the work. This is why it may work for some and not for others or why it may work some of the time but not all of the time. It is poor guidance, in my opinion, to instruct people to create shortcuts that use rundll32.exe without validating that the use of rundll32.exe is correct as per the MS KB articles that were mentioned in the links.
If you really want to create shortcuts to do the "shutdown" things, consider checking out e.g. Sysinternals' PsShutdown.
If you really want to create shortcuts to do the "shutdown" things, consider checking out e.g. Sysinternals' PsShutdown.
Need I say more? The only problem is that you have to verify (yes or no) to complete the action.
C:\Windows\System32\rundll32.exe shell32 SHExitWindowsEx n
Where n is:
0 = Log Off
1 = ShutDOwn
2 = Restart
4 = Forced
8 = Poweroff
Or:
Shutdown command
RUNDLL32.EXE user,exitwindows
Restart Command - Windows 9x
C:\WINDOWS\RUNDLL.EXE user.exe,exitwindowsexec
Where n is:
0 = Log Off
1 = ShutDOwn
2 = Restart
4 = Forced
8 = Poweroff
Or:
Shutdown command
RUNDLL32.EXE user,exitwindows
Restart Command - Windows 9x
C:\WINDOWS\RUNDLL.EXE user.exe,exitwindowsexec
- Keyboard Shortcuts:
- Prev
- Next
- Toggle

































