-
Notifications
You must be signed in to change notification settings - Fork 88
NetAdapterState
dscbot edited this page Jun 7, 2024
·
4 revisions
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Name | Key | String | Specifies the name of network adapter. | |
State | Required | String | Specifies the desired state of the network adapter |
Enabled , Disabled
|
This resource is used to enable or disable a network adapter.
This configuration enables the network adapter named Ethernet.
Configuration NetAdapterState_Enable_Config
{
Import-DSCResource -ModuleName NetworkingDsc
Node localhost
{
NetAdapterState EnableEthernet
{
Name = 'Ethernet'
State = 'Enabled'
}
}
}
This configuration disables the network adapter named Ethernet.
Configuration NetAdapterState_Disable_Config
{
Import-DSCResource -ModuleName NetworkingDsc
Node localhost
{
NetAdapterState EnableEthernet
{
Name = 'Ethernet'
State = 'Disabled'
}
}
}
- DefaultGatewayAddress
- DnsClientGlobalSetting
- DnsConnectionSuffix
- DnsServerAddress
- Firewall
- FirewallProfile
- HostsFile
- IPAddress
- IPAddressOption
- NetAdapterAdvancedProperty
- NetAdapterBinding
- NetAdapterLso
- NetAdapterName
- NetAdapterRdma
- NetAdapterRsc
- NetAdapterRss
- NetAdapterState
- NetBios
- NetConnectionProfile
- NetIPInterface
- NetworkTeam
- NetworkTeamInterface
- ProxySettings
- Route
- WaitForNetworkTeam
- WinsServerAddress
- WinsSetting