This is pretty cool script after patch updates to check which servers are successfully rebooted. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 $Servers = Get-Content C:\UpdateServers.txt function WMIDateStringToDate($Bootup) { [System.Management.ManagementDateTimeconverter]::ToDateTime($Bootup) } foreach ($Server in $Servers) { $OS = Get-WmiObject Win32_OperatingSystem -ComputerName $Server $Bootup = […]
↧