Guest User

Untitled

a guest
Nov 18th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. Get-Content C:\scripts\serverslist.txt |
  2. % { Invoke-WmiMethod -ComputerName $_ -Namespace root\ccm\clientsdk -Class CCM_ClientUtilities -Name DetermineIfRebootPending |
  3. select PSComputerName,RebootPending,RebootDeadline } |
  4. Export-Csv -NoTypeInformation C:\scripts\PendingReboots.csv
Add Comment
Please, Sign In to add comment