This script checks for computers in a "Reboot Pending" state.

The email report generated by the script uses conditional formatting to highlight which Computers are pending a reboot and for what reason.

The list of Servers to be checked can be pulled from either a  comma separated list, from a txt document or from the computers contained within a specific OU.



This script checks through a list of computers to report via email whether any computers are in a "Reboot Pending" state. 
#Email Variables 
$smtpServer = "" 
$smtpFrom   = "<>" 
$smtpTo     = "<>" 
$Subject     = "'Reboot Pending' report"