-
Notifications
You must be signed in to change notification settings - Fork 90
NetConnectionProfile
dscbot edited this page Apr 14, 2025
·
7 revisions
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
| InterfaceAlias | Key | String | Specifies the alias for the Interface that is being changed. | |
| IPv4Connectivity | Write | String | Sets the Network Category for the interface. |
Disconnected, NoTraffic, Subnet, LocalNetwork, Internet
|
| IPv6Connectivity | Write | String | Specifies the IPv4 Connection Value. |
Disconnected, NoTraffic, Subnet, LocalNetwork, Internet
|
| NetworkCategory | Write | String | Specifies the IPv6 Connection Value. |
Public, Private
|
This resource is used to set a node's connection profile.
Sets the Ethernet adapter to Public and IPv4/6 to Internet Connectivity.
Configuration NetConnectionProfile_SetPublicEnableInternet_Config
{
Import-DscResource -Module NetworkingDsc
Node localhost
{
NetConnectionProfile SetPublicEnableInternet
{
InterfaceAlias = 'Ethernet'
NetworkCategory = 'Public'
IPv4Connectivity = 'Internet'
IPv6Connectivity = 'Internet'
}
}
}Sets the Ethernet adapter to Private but does not change IPv4 or IPv6 connectivity.
Configuration NetConnectionProfile_SetPrivate_Config
{
Import-DscResource -Module NetworkingDsc
Node localhost
{
NetConnectionProfile SetPrivate
{
InterfaceAlias = 'Ethernet'
NetworkCategory = 'Private'
}
}
}- DefaultGatewayAddress
- DnsClientGlobalSetting
- DnsClientNrptGlobal
- DnsClientNrptRule
- 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