Use below to get the following details using powershell from any computer
- Windows Operating System
- OS Architecture
- OS Install Date
- Last BootUp Time
- Total Uptime
$computers = "CM","DC","WIN7"
$os = Get-CimInstance Win32_operatingSystem -ComputerName $computers
$os | Select Caption,OSArchitecture,InstallDate,LastBootUpTime, `
@{Name="Uptime";Expression={(Get-Date)-$_.LastBootUpTime}},PSComputername
$os = Get-CimInstance Win32_operatingSystem -ComputerName $computers
$os | Select Caption,OSArchitecture,InstallDate,LastBootUpTime, `
@{Name="Uptime";Expression={(Get-Date)-$_.LastBootUpTime}},PSComputername