Jump to content

Reboot only if reboot is pending


Admin Patrick

Recommended Posts

Hey

I want to reboot my servers only when it's really needed.

We have like 100 servers running in production, so it's necessary to only reboot when needed after updates.

I found a script test-pendingreboot but can't get it in a proper script to run it

Should be like this if test-pendingreboot is "true"  {restart-computer}

Hope you can help me out

Cheers

Link to comment
Share on other sites

  • Administrators

Hi Patrick,

Our patch management feature will only restart the OS if the windows update component says a reboot is pending. I can help you fix the script if you share it here too.

-Paul

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...