Welcome › Forums › General PowerShell Q&A › Get lastboouptime in EST time zone.
This topic contains 3 replies, has 3 voices, and was last updated by
When I use Get-CimInstance to get lastbootuptime for a server I get the output in my laptop time zone, but I need it in EST, please help.
You're also going to have to query the laptop's time zone and do the conversion math.
The following works on my machine:
$os = Get-CimInstance -ClassName Win32_OperatingSystem -Property LastBootUpTime
$timeZoneInfo = [System.TimeZoneInfo]::FindSystemTimeZoneById('Eastern Standard Time')
Thank you Dan it works!
The topic ‘Get lastboouptime in EST time zone.’ is closed to new replies.