I want to start a program after rebooting and used this script, but it's not working.
When I run it local in powershell it works.
Someone who can help me?
pushd "\\fax-dataserver\IT\WVL\04. Software\IT_Monitor\IT_Monitor_live\"
& '.\IT Monitor.exe'
popd
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