T Nation

Resident T-Nation Scripters

I’m currently handling a project whereby we need to get about 200 end-user machines compliant with current security patches from MS.

We have a vehicle for deploying patches that seems to be working fine, but they are chained in deployment meaning until a reboot takes place, they will queue up.

Anyone know of any decent script (WSH, VBS, I don’t care much - ease of use being paramount) utility that can remotely reboot systems? In a perfect world it’d have error-checking/variables I could modify, but I’ll take the meat and potatoes at a minimum.

Thanks!

Assuming all your servers are on UPS, toggling the main breaker should do the trick.

Bonus: You get to blame the power company for any problems.

Serious answer: A utility like sysinternal’s psshutdown can be used to remotely reboot PCs. Just put it in a script that sends one to all your PCs and you’ll be set.

There’s a bunch of switches to control whether the user is given the option of cancelling it, how much delay before reboot, etc.

“psshutdown /?” will give you all you need to know.

http://www.emco.is/products/remote-shutdown/features.php works well but it costs.

Are the machines in an active directory domain?

If you use SUS or WSUS you can force a reboot after installation if the
updates required one.

[quote]pookie wrote:
Bonus: You get to blame the power company for any problems.
[/quote]

Spoken like a true sysadmin.

This may be of use too…

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=36894&lngWId=1

ASP version also available.

Powershell will do this pretty easily we use CCM here so i have never tried any of these…

http://www.terminal23.net/2007/10/reboot_a_system_in_powershell.html

[quote]Renton wrote:
http://www.emco.is/products/remote-shutdown/features.php works well but it costs.

Are the machines in an active directory domain?

If you use SUS or WSUS you can force a reboot after installation if the
updates required one.[/quote]

We’re using a product called Patchlink, and the option to reboot after installation is there, but unfortunately doesn’t allow you to tinker with WHEN the systems are forced to reboot. A script I can run using a scheduler or whatnot.

That second link you provided looks interesting, thanks Renton and the rest of ya’s.

[quote]Renton wrote:
pookie wrote:
Bonus: You get to blame the power company for any problems.

Spoken like a true sysadmin.[/quote]

Always have:

A) A idea of what you’re doing.
B) A backup.
C) A scapegoat.

You’d be surprised how many people have neither A) nor B).

My advice: Use them as C)