Link to home
Start Free TrialLog in
Avatar of elo-milo
elo-milo

asked on

Run Once for rebooting workstations?

I'm deploying WSUS on our network. Some workstations do not receive WSUS policy through GPO. I've done tons of troubleshooting and it seems that the easiest fix for them is just to reboot them (they recieve policies with no problem when rebooted)
I'm looking for a solution to force (remotely) reboot of our computers - let's say once a week. What would be the best way to achieve it?

Thakls.
Avatar of Joseph Daly
Joseph Daly
Flag of United States of America image

You could use the shutdown command that is included with windows. You can either do this manually of you can use a batch file to trigger it.

If you run shutdown -i it will bring up an interactive mode that you can select computers to be shutdown/rebooted.

Another option would to create a scheduled task on the machines.
I'm not sure if you want to troubleshoot the issue were the clients do not get the GPO?   or a quick solution would be to go to a workstation that has the correct settings and reboots properly with the GPO settings applied properly.  

Export the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU

The import in the workstations you have trouble with...and they will be good to go.
Avatar of elo-milo
elo-milo

ASKER

"If you run shutdown -i it will bring up an interactive mode that you can select computers to be shutdown/rebooted"

----- ture, but imagine you have 1200 PCs and 400 need to be rebooted...
Well how do you know which ones need to be rebooted? The shutdown -i command can target specific ous, ldap filters, etc. Pretty much any search you can do in ad you can use to filter the shutdown with.
That's the thing - I don;t know which ones won;t get the policy and will need to be rebooted. My plan is to reboot all of them once a week .
ASKER CERTIFIED SOLUTION
Avatar of Joseph Daly
Joseph Daly
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If you think you have to reboot for your "WSUS GPO" to apply, I would be more concerned as to why it isnt applying like it should in the first place.
 
Also, there should be no need to keep rebooting to reapply it. Have you run "RSOP.MSC" to see if maybe there's another GPO conflicting?
1. xxdcmast
I hear you - I thin the best thing would be to create a script in this case an run it trough GPO - this way I can create a task on every workstation to be rebooted once a week.

2. dstewartjr:
"I would be more concerned as to why it isnt applying like it should in the first place."
---- :) I'm concerned, but I have like 8 projects that I have to deal with at the same time and both had to be done yetersay. At this point I;m just looking for a quick fix, I can deal woth the rest later.

"Have you run "RSOP.MSC" to see if maybe there's another GPO conflicting?"
I did emulate it trhough GP modelin and no conflicts were reported.  gpresult doesn't show anu conflicts either - it's just not being applied.
I'd go with rebooting  - I just don;t have time for really long troubleshooting on every workstation, if reboot works then I;m happy at this point

Thanks.
It seems that even though you both helped me I can assign points only to one person...strange. I'd like to thank you both.

"I just don;t have time for really long troubleshooting on every  workstation"

You only need to do this on one pc. Rsop.msc was just one of the ways to start troubleshooting.



Good luck with your "Bandaid" then. I stand by my comment that it is totally unnecessary to have to reboot  "Once a week" .