Get-TimeZone PowerShell Command

Get-TimeZone | Taking on PowerShell one cmdlet at a time | Weekly Blog

Share this post:

This is a part of an on-going blog series written by Adam Gordon. Each week, Adam will walk you through a PowerShell command, showing you when and how to use each one. This week, Adam covers Get-TimeZone.

When to use Get-TimeZone?

The Get-TimeZone cmdlet gets the current time zone or a list of available time zones.

What version of PowerShell am I using?

Get the PowerShell Version from your machine:

$PSVersionTable

This command shows you the PowerShell version information on your machine.

How to use Get-TimeZone?

Get the current time zone:

Get-TimeZone

Get time zones that match a specified string:

Get-TimeZone -Name “*pac*”

Get all available time zones:

Get-TimeZone -ListAvailable

Learn last week’s command: Get-Clipboard.

Need PowerShell training? Check out ITProTV’s PowerShell online IT training courses.