Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Configuration SetTimeZone
[String[]]$NodeName = $env:COMPUTERNAME,
[Parameter(Mandatory = $true)]
Import-DSCResource -ModuleName xTimeZone
Node $NodeName
xTimeZone TimeZoneExample
IsSingleInstance = 'Yes'
TimeZone = $SystemTimeZone
SetTimeZone -NodeName "localhost" -SystemTimeZone "Tokyo Standard Time"
Start-DscConfiguration -Path .\SetTimeZone -Wait -Verbose -Force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.