Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

PS: retrieve install date from remote computer

$
0
0
How do I retrieve the Windows install date from a remote computer?
By using

   ([WMI]'').ConvertToDateTime((Get-WmiObject Win32_OperatingSystem).InstallDate)

I can get the info for my local machine but I can't figure out how to adapt it for use on a remote machine.

The closest I've gotten is

   Get-WmiObject -Class Win32_OperatingSystem -Property InstallDate -ComputerName <name>

but that gives me too much info and doesn't convert the date.

Viewing all articles
Browse latest Browse all 15028

Trending Articles