Test-PendingReboot

SYNOPSIS

Checks to see if Windows is pending a reboot

!!SYNTAX
Test-PendingReboot <CommonParameters>

DESCRIPTION

Uses a script from Brian Wilhite
http://gallery.technet.microsoft.com/scriptcenter/Get-PendingReboot-Query-bdb79542
that queries the registry, Windows Update and System C
onfiguration Manager to determine if a pending reboot is
required.

One may want to check this before installing software
or doing anything that may fail if there is a pending
reboot. If this command returns $true, one may want to
call Invoke-Reboot to restart the local machine.

LINK

http://gallery.technet.microsoft.com/scriptcenter/Get-PendingReboot-Query-bdb79542
Invoke-Reboot
about boxstarter bootstrapper

Last edited Mar 28, 2013 at 6:47 AM by mwrock, version 3