A repository of notes about Performance Testing, Automation, RPA, and Web Design.

[PowerShell] How to get timezone of remote machine

Cos I don’t have access to this machine and I needed to know the timezone its on…

Just fire up PowerShell and run the following command to fetch the timezone

Get-WMIObject -Class Win32_TimeZone -Computer ServerName

Just replace ServerName with the actual machine or server name

Similarly if you want to get the timezone of your local machine

Get-WMIObject -Class Win32_TimeZone

Hope this helps!

Share:

No comments:

Post a Comment