shutdown of domain computers on a windows 2003 server
-
07 Mei 2012 14:36
Hi Everyone,
I need a way of shutdown my windows 7 computers in my 2003 server domain.
i need that shutdown to occur daily and automatically without user input.
i would perfer not to have the server issue the command everytime, but a way of the windows 7 computer know they need to shutdown.
i also need to be able to have it sent out from the server as i have over 600 desktops.
There is no chance of upgrading to 2008.
Semua Balasan
-
07 Mei 2012 14:50
The normal method of doing this would be from a central script.
However, because you don't want to issue the command to all 600 computers from one script, you now have the task of scripting 600 Scheduled Tasks for your workstations, and copying the script 600 times to all workstations.
Grant Ward, a.k.a. Bigteddy
-
07 Mei 2012 15:13Moderator
I need a way of shutdown my windows 7 computers in my 2003 server domain.
Why?
Bill
-
07 Mei 2012 15:37
The normal method of doing this would be from a central script.
However, because you don't want to issue the command to all 600 computers from one script, you now have the task of scripting 600 Scheduled Tasks for your workstations, and copying the script 600 times to all workstations.
Grant Ward, a.k.a. Bigteddy
WIndows 7 can use GPP to define tasks. The taske can be a script that notifies teh user of the shutdown and then timesout before a shutdown.
You will need to install RSAT on a Win7 system. I highly recommend doing this for overall management convenince.
¯\_(ツ)_/¯
-
08 Mei 2012 3:21Moderator
If you do not need to notify your users about the shutdown, you can use a scheduled task running under the SYSTEM account to do just that. The easiest method and with the least administrative overhead, imho, would be to use GPP as mentioned earlier. A sample shutdown script is shown below (you can push this to all your computers as a scheduled task via GPP):
strComputer = "." strShutdown = "shutdown.exe /f /s /m \\" & strComputer Set objShell = CreateObject("Wscript.Shell") Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") objShell.Run strShutdown
Regards,
Salvador Manaois III
MCSE MCSA CEH MCITP | Enterprise/Server Admin
Microsoft Certified Solutions Associate
http://www.badzmanaois.com
-
08 Mei 2012 3:54
Windows 7 and later.= wit hRSAT ion WS2003 domain.
GP Prefs.
Set scedule to Update and schedule "shutdown.exe" with args "-r -f"
No need fro a script. It is all built inot system. Run under administraors group.
¯\_(ツ)_/¯
- Disarankan sebagai Jawaban oleh BigteddyMicrosoft Community Contributor 08 Mei 2012 9:26
- Ditandai sebagai Jawaban oleh IamMredMicrosoft Employee, Owner 12 Mei 2012 0:45
-
08 Mei 2012 9:32
Another thought: Restarting 600 client computers at the same time may put too much load on the DC infrasctructure. I would restart the pc's in batches. See a script I wrote:
http://gallery.technet.microsoft.com/scriptcenter/Restart-computers-in-a122b3cc
Grant Ward, a.k.a. Bigteddy
-
08 Mei 2012 14:52
Another thought: Restarting 600 client computers at the same time may put too much load on the DC infrasctructure. I would restart the pc's in batches. See a script I wrote:
http://gallery.technet.microsoft.com/scriptcenter/Restart-computers-in-a122b3cc
Grant Ward, a.k.a. Bigteddy
The sceduler can be set to do a random time offest around a specific time. GPP can set this up on all machies. They will restart randoml,y over as much of a time field as you think is needed. For 600 I would say about two hours which is 30 a minutes. The DCs should have no issues with that.¯\_(ツ)_/¯