If you want to delay the time for restart, shutdown, log off, or hibernate Vista only , you can use the -t switch to set a timeout delay for the command to execute. In the example above, adding timeout to the command for 10 seconds would look like this:. If you prefer to use the the keyboard, you can easily add a keyboard shortcut to the new shortcut by following the steps outlined in the article Create Keyboard Shortcuts on Windows.
I don't know of anything that can prompt the user to cancel other than writing code , but what you can do is open up a command prompt and type.
Or create a second shortcut using the above command. This way you can quickly click it instead of opening a command prompt. For what ever reason, you user account does not have the right to shutdown the system when executing the shutdown command which is interesting since you can probably shut down from the Start menu.
Your best work around is to set run the shortcut with alternate credentials admin account when it is launched. To do this:. After clicking on the shortcut, you will be able to select an account with admin rights and need to enter the password.
Ya I tried that, selecting an admin account, but it still does not shut down when clicking the shortcut icon nothing happens, no message appears. The administrator should appear in the welcome menu, and usually they're not password protected.
Get in and change your account to an admin account. Type in. In vista it is possible to run the shortcut as administrator by right clicking the shortcut and choosing run as administrator. Microsoft has a hotfix for this but it only will work on SP1. Previously, he has worked as Documentation Specialist in the software industry, a Technical Support Specialist in educational industry, and a Technical Journalist in the computer publishing industry.
Click Next and then click the Browse button. Follow the wizard through the next two screens to give the task a name and choose a schedule. Enter your user account name and password and click Next. Select the Open Advanced Properties check box and click Finish.
Be sure to include a space between the last character in the command name and the first character in the parameter list. Enter your user account name and password and click OK. Miss a tip? Access is denied. Thanks for this article! I set up wireless printing and network drives. This was pretty easy for me actually.
But if My mom did this, she would be all over the place………. This same thing happens with my Windows Vista. Has something changed since you wrote these articles?
Thanks for your time and help. Screen below. No args Display this message same as -? Gary G. Nyman, Sr. Also, you might want to take a look at your system event log file, maybe there is something getting recorded in there when the command runs. Nothing has changed since the articles were written. It should work with XP at least. Nyman, Sr…. Try entering the shutdown.
I would also try enclosing the comment in two sets of quotes to see if that helps. I have had to do this in the past with comment strings that include a space. Let us know how you make out. Thanks ever so much for the prompt response and your help.
I have Administrative priviliges. Can someone confirm?
0コメント