How to Get the Time Zone Set on a Remote Computer With PowerShell

Windows PowerShell provides a variety of commands that rely on the Windows Management Instrumentation framework to acquire information from remote computers. One such command is Get-WmiObject, which you can utilize to view the time zone set on a remote computer on your network, assuming the remote computer allows WMI traffic through its firewall. The Get-WmiObject command can be run directly from the PowerShell prompt or incorporated into PowerShell scripts for automation.

Instructions

    • 1

      Open Windows PowerShell by clicking "Start," typing "PowerShell" into the search box and pressing "Enter."

    • 2

      Type the following command into the PowerShell window, replacing "RemoteComputer" with the name of the remote computer on your network or the remote computer's numerical IP address, and press "Enter" to run the command:

      Get-WmiObject -class "win32_TimeZone" -ComputerName RemoteComputer

    • 3

      Read the time zone on the "Caption" line in the PowerShell window.

Tips & Warnings

  • If you can't connect to the remote computer with the Get-WmiObject command, the firewall on the computer may be blocking WMI connections. Click "Start" on the remote computer, type "Allow" into the search box and click "Allow a Program Through Windows Firewall." Click the "Change Settings" button and tick the check box to the left of "Windows Management Instrumentation (WMI)" in the list. Click "OK" to save your settings.

Related Searches:

References

Comments

Related Ads

Featured