DSCResources/DSC_TimeZone/en-US/about_TimeZone.help.txt

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
.NAME
    TimeZone
 
.DESCRIPTION
    The resource will use the `Get-TimeZone` cmdlet to get the current
    time zone. If `Get-TimeZone` is not available them CIM will be used to retrieve
    the current time zone. To update the time zone, .NET reflection will be used to
    update the time zone if required. If .NET reflection is not supported on the node
    (in the case of Nano Server) then tzutil.exe will be used to set the time zone.
 
.PARAMETER IsSingleInstance
    Key - String
    Allowed values: Yes
    Specifies the resource is a single instance, the value must be 'Yes'.
 
.PARAMETER TimeZone
    Required - String
    Specifies the TimeZone.
 
.EXAMPLE 1
 
This example sets the current time zone on the node
to 'Tonga Standard Time'.
 
Configuration TimeZone_SetTimeZone_Config
{
    Import-DSCResource -ModuleName ComputerManagementDsc
 
    Node localhost
    {
        TimeZone TimeZoneExample
        {
            IsSingleInstance = 'Yes'
            TimeZone = 'Tonga Standard Time'
        }
    }
}