LockDown32
asked on
Need to determine if a computer needs to be restarted
After a Windows Update it indicates if a restart is needed or not. Can I somehow get that in a PowerShell script? If it needs to be rebooted?
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
I am new to PowerShell. So what would the syntax be on the above?
if Test-PendingReboot = $True
{
Reboot or something
}
if Test-PendingReboot = $True
{
Reboot or something
}
I am using a patch deployment system (HCL BigFix) and this is the key they check to see if a computer needs a reboot