?
Solved

Using shutdown.exe to reboot all clients on a domain

Posted on 2005-04-12
7
Medium Priority
?
6,289 Views
Last Modified: 2008-01-09
Hello hello,

I have a domain of around 30 workstations (running XP pro) running on one windows 2003 server std. server. I have read quite a few answers to questions like this here, but without finding THE answer I need...
I need help (and examples) on how to create a batch file that on a scheduled time will force reboot ALL clients on the domain, no matter if they are logged in or not. (alternatively to rebooting, log off is ok as well).
For testing I've tried to run this on the server "shutdown -r -f -m \\mybox-01", but I get "The entered computer name is not valid. Check the name and then try again or contact your system administrator.(53)" returned, eventhough I KNOW computer is working fine in the domain, so I have no idea why this error should occour.

Anyway, help on batch file for all clients force reboot. And correct shutdown parameters to use in commandline from server to all clients.

Heeeeelp!

Thanks :-)
0
Comment
Question by:kaspermadeira
  • 2
  • 2
  • 2
6 Comments
 
LVL 7

Expert Comment

by:blin2000
ID: 13763859
make sure the client' server and browser services are running if you receive system error 53. this case study may help, quoted from http://www.howtonetworking.com/casestudy.htm

Can’t restart remote computer using shutdown command

Situation: when you access the Office LAN via VPN and try to restart a remote XP computer using shutdown command, you can’t and receive this message “A required privilege is not held by the client”. Note: is you use a Windows 2000, you may receive this message: “Unable to shutdown the specified server”

Analysis: You may not have administrator rights to shutdown/restart the remote computer or you have not cached the credentials.

Resolution: 1. use the runas command. To do this, type runas /u:domainname\username “shutdown –r –t xx –f –m \\remotepcname”, for example, runas /u:chicagotech\bob “shutdown –r –t xx –f –m \\ms-mvps”. Note: domainname can be domain name, workgroup name or computer.

2. Alternatively, you may use this command: net use \\remotepcname password /u:domainname\username and then shutdown –r –t xx –f –m \\remotepcname.

3. If above commands don't work and you receive System error 67, make sure you type the correct commands and computer name. If you receive system error 53, make sure the Server service and Computer Browser service are running.

Related Topics

How to use the runas command
RunAs' GUI Feature
How to perform administrative tasks while logged on as a regular user

0
 
LVL 18

Expert Comment

by:crissand
ID: 13764104
Microsoft recommend this syntax:

http://support.microsoft.com/default.aspx?scid=kb;en-us;317371

I prefer using psshutdown from sysinternals since it uses as input a list of computers.

http://www.sysinternals.com/ntw2k/freeware/psshutdown.shtml

The syntax I use is

psshutdown @complists.txt -n 120 -t 120

0
 

Author Comment

by:kaspermadeira
ID: 13770095
Thanks for the article blin2000! I tried a few different uses of it now, but I still don't get anything restarted... Well, I can use the command locally, but as soon as I try to send the command to another client, or try to use it from the server, nothing happens... Also the article doesn't talk about how to restart all clients on the domain, only single users are explained.

Crissand - I was thinking of psshutdown actually, but am not to familiar with their commands. Your solution sounds interesting, maybe you can give me more details? psshutdown.exe must be on all clients (in drive root?) and then I can run the "psshutdown @complists.txt -n 120 -t 120" command from the server?? And the complests.txt file I suppose holds a list of all the computernames? How should these be formated/separeted? Please if you have samples or more detailed info on this solution, and it's commands and batch capabilities. This could very well be the answer!

Thanks again guys!
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 18

Accepted Solution

by:
crissand earned 700 total points
ID: 13771415
No psshutdown is on administrator's computer only, or on server, if you launch it from the server.

The list of computers is like this:

comp1
comp2
comp5

0
 
LVL 7

Expert Comment

by:blin2000
ID: 13774234
what's the error when you tried?
0
 

Author Comment

by:kaspermadeira
ID: 13813300
No error blin2000 - just no action... Nothing happens. I made the psshutdown tool work - but not very stabile, and not from a file, only if I punch in fx. my own computer name... Will have to work a bit more on this later. SOOO strange/annoying that it has to be THIS difficult to restart a pc huh :-)
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
Resolve DNS query failed errors for Exchange
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question