DSCResources/DSC_NetConnectionProfile/en-US/about_NetConnectionProfile.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 53 54 55 56 57 58 59 60 61 62 63 64 65 |
.NAME
NetConnectionProfile .DESCRIPTION This resource is used to set a node's connection profile. .PARAMETER InterfaceAlias Key - String Specifies the alias for the Interface that is being changed. .PARAMETER IPv4Connectivity Write - String Allowed values: Disconnected, NoTraffic, Subnet, LocalNetwork, Internet Sets the Network Category for the interface. .PARAMETER IPv6Connectivity Write - String Allowed values: Disconnected, NoTraffic, Subnet, LocalNetwork, Internet Specifies the IPv4 Connection Value. .PARAMETER NetworkCategory Write - String Allowed values: Public, Private Specifies the IPv6 Connection Value. .EXAMPLE 1 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' } } } .EXAMPLE 2 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' } } } |