Powershell – Get Time On Remote Computer
Short but useful snippet to get the time on a remote computer using Powershell & WMI.
$rt = Get-WmiObject -Class Win32_OperatingSystem -ComputerName computer.consoto.com $rt.ConvertToDateTime($rt.LocalDateTime)