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
What it does
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"IdentifySet the time zone by name
Set-TimeZone -Name 'Coordinated Universal Time' -PassThruIdentifyExample 3 - List all available time zones
Get-TimeZone -ListAvailableIdentifyIts page in the reference: Set-TimeZone.
Parameters
-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.