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.
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.