DSCResources/DSC_NetAdapterState/en-US/about_NetAdapterState.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
40
41
42
43
44
45
46
47
48
49
50
51
52
.NAME
    NetAdapterState
 
.DESCRIPTION
    This resource is used to enable or disable a network adapter.
 
.PARAMETER Name
    Key - String
    Specifies the name of network adapter.
 
.PARAMETER State
    Required - String
    Allowed values: Enabled, Disabled
    Specifies the desired state of the network adapter
 
.EXAMPLE 1
 
This configuration enables the network adapter named Ethernet.
 
Configuration NetAdapterState_Enable_Config
{
    Import-DSCResource -ModuleName NetworkingDsc
 
    Node localhost
    {
        NetAdapterState EnableEthernet
        {
            Name = 'Ethernet'
            State = 'Enabled'
        }
    }
}
 
.EXAMPLE 2
 
This configuration disables the network adapter named Ethernet.
 
Configuration NetAdapterState_Disable_Config
{
    Import-DSCResource -ModuleName NetworkingDsc
 
    Node localhost
    {
        NetAdapterState EnableEthernet
        {
            Name = 'Ethernet'
            State = 'Disabled'
        }
    }
}