Export computers to a file with power shell

  • 171 Views
  • Last Post 05 July 2018
adriaoramos posted this 30 June 2018

I need to list all my computers with last boot time. I found  a good tip like this: "Get-ADCodownloadmputer -Filter * -Property * | Format-Table Name,OperatingSystem,OperatingSystemServicePack,OperatingSystemVersion -Wrap –Auto" , However I didnt find a way to get the latest boot time and set a specified OU. Is ther a way to do that, adding those options to the command?

Adriao Ferreira Ramos
Equipe de infraestrutura
Departamento de Operações e Infraestrutura - CII
tel
+55 11 3388-8193
adriaoramos@xxxxxxxxxxxxxxxx
imprimir sabesp sp face twiter youtube




Order By: Standard | Newest | Votes
michael1 posted this 05 July 2018

Get-WmiObject win32operatingsystem | select CSName, LastBootUptime

 

Or

 

WMIC PATH Win32
OperatingSystem Get CSName,LastBootUpTime

 

show

Close