CmdID

CmdID / PowerShell / Cmdlets / Set

Set-TimeZone

Sets the system time zone to a specified time zone. PowerShell reference

From the PowerShell reference 6 parameters Alias stz

Opens CmdID with your command, read as PowerShell. It is read in your browser and sent nowhere.

What it does

from the PowerShell reference, CC BY 4.0

Sets the system time zone to a specified time zone. The Set-TimeZone cmdlet sets the system time zone to a specified time zone.

Set-TimeZone [-Name] <String> [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]
Set-TimeZone -Id <String> [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]
Set-TimeZone [-InputObject] <TimeZoneInfo> [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]

Set the time zone by Id

Set-TimeZone -Id "UTC"Identify

Set the time zone by name

Set-TimeZone -Name 'Coordinated Universal Time' -PassThruIdentify

Example 3 - List all available time zones

Get-TimeZone -ListAvailableIdentify

Its page in the reference: Set-TimeZone.

Parameters

6 in the PowerShell reference
-IdSpecifies the ID of the time zone that this cmdlet sets.
-InputObjectSpecifies a TimeZoneInfo object to use as input.
-NameSpecifies the name of the time zone that this cmdlet sets. A full list of Time Zone names can be obtained by running the following command: Get-TimeZone -ListAvailable.
-PassThruReturns an object representing the item with which you are working. By default, this cmdlet does not generate any output.
-ConfirmPrompts you for confirmation before running the cmdlet.
-WhatIfShows what would happen if the cmdlet runs. The cmdlet is not run.