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?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Joseph DalyCommented:
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.
Rick FeeMessaging Engineer - Disaster Recovery EngineerCommented:
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.
elo-miloAuthor Commented:
"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...
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Joseph DalyCommented:
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.
elo-miloAuthor Commented:
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 .
Joseph DalyCommented:
Well since you dont know which computers you will need to do this on I would suggest setting up a scheduled task on all of the machines that you want to reboot. There is no built in way through AD or group policy to schedule a task but basically you could use a stratup script with the commands in the excel file below to create a scheduled task on each machine.

You would modify the data in the exfile file and you can run it as a startup script on the workstations. It will create a scheduled task to reboot each machine per your schedule.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
DonNetwork AdministratorCommented:
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?
elo-miloAuthor Commented:
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

elo-miloAuthor Commented:
elo-miloAuthor Commented:
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.
DonNetwork AdministratorCommented:

"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" .
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Active Directory

From novice to tech pro — start learning today.