Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Get-Content C:\scripts\serverslist.txt |
- % { Invoke-WmiMethod -ComputerName $_ -Namespace root\ccm\clientsdk -Class CCM_ClientUtilities -Name DetermineIfRebootPending |
- select PSComputerName,RebootPending,RebootDeadline } |
- Export-Csv -NoTypeInformation C:\scripts\PendingReboots.csv
Add Comment
Please, Sign In to add comment