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