Skip to content
An example of xTimeZone port to a class as a Single Instance. resource.
PowerShell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Example
LICENSE
README.md
appveyor.yml
xTimeZone.psd1
xTimeZone.psm1

README.md

Build status

xTimeZone

The xTimeZone module the xTimeZone DSC resource for setting the timezone on a machine.

Contributing

Please check out common DSC Resources contributing guidelines.

Resources

xTimeZone

  • TimeZone: Specifies the Time Zone. To discover all valid time zones for this property, use this PowerShell command: [System.TimeZoneInfo]::GetSystemTimeZones().Id
  • IsSingleInstance: Specifies if the resource is a single instance, the value must be 'Yes'

Versions

1.0.0.0

  • Initial release with the following resource:
    • xTimeZone

vNext

  • Changed xTimeZone key to IsSingleInstance

Examples

Setting the Time Zone

In the Examples folder, SetTimeZone.ps1 demonstrates how to set the local time zone to "Tonga Standard Time".

You can’t perform that action at this time.