Use below code to show up system/server LastBootUptime
Get-CimInstance -ClassName win32_operatingsystem
-ComputerName Server01,Server02,Server03
| select csname, lastbootuptime |
SORT CSNAME
Get-CimInstance -ClassName win32_operatingsystem
-ComputerName (Get-Content
D:\serverS.TXT) | select csname, lastbootuptime |
SORT CSNAME
| ft -AutoSize
OR
Output:

No comments:
Post a Comment