DOS 'shutdown' command

Guv

Guv

Soldato
Joined
24 Oct 2002
Posts
3,257
Location
Warwickshire
I'm trying to use the dos 'shutdown' command to restart a pc on the network using the following:

"shutdown -r -m \\COMPUTERNAME -t 10"

From what I can see that should restart the computer in 10 seconds. It looks to be working but tells me access is denied to the networked pc. How can I give myself access?

thanks
 
that works for me, i can only suggest that it is to do with your user name and password that you are using. Or maybe a firewall. Depends on your set up really.

Make your you have the same account details on both computer, or if your on a domain add your user account to the administrator account on the target PC.
If this at home then your'll probably find that the default account your using are different due to preloaded software if your using OEM.
 
Easiest way to give yourself access is by the runas command.

For example if you click Start then Run then enter CMD.

The standard Windows command box pops up. Then enter:

runas /user:domain/username password cmd

This will open another Windows command box. This will be with the elevated user rights (i.e. a domain administration) from there you can do:

shutdown -i (which gives you a nice interface to use) or you can use the shutdown in your previous post which should now work.



M.
 
Back
Top Bottom