This is the built-in help made by Microsoft for the command 'Set-NetIPInterface', in PowerShell version 3 - as retrieved from
Windows version 'Microsoft Windows Server 2012 Standard' PowerShell help files on 2016-06-23.
For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.
Modifies IP interface properties.
Set-NetIPInterface [[-InterfaceAlias] <String[]>] [-AddressFamily <AddressFamily[]>] [-AdvertiseDefaultRoute <AdvertiseDefaultRoute>]
[-AdvertisedRouterLifetime <TimeSpan>] [-Advertising <Advertising>] [-AsJob [<SwitchParameter>]] [-AutomaticMetric <AutomaticMetric>]
[-BaseReachableTimeMs <UInt32>] [-CimSession <CimSession[]>] [-CurrentHopLimit <UInt32>] [-DadTransmits <UInt32>] [-Dhcp <Dhcp>]
[-DirectedMacWolPattern <DirectedMacWolPattern>] [-EcnMarking <EcnMarking>] [-ForceArpNdWolPattern <ForceArpNdWolPattern>] [-Forwarding
<Forwarding>] [-IgnoreDefaultRoutes <IgnoreDefaultRoutes>] [-InterfaceIndex <UInt32[]>] [-InterfaceMetric <UInt32>]
[-ManagedAddressConfiguration <ManagedAddressConfiguration>] [-NeighborDiscoverySupported <NeighborDiscoverySupported[]>]
[-NeighborUnreachabilityDetection <NeighborUnreachabilityDetection>] [-NlMtuBytes <UInt32>] [-OtherStatefulConfiguration
<OtherStatefulConfiguration>] [-PassThru [<SwitchParameter>]] [-PolicyStore <String>] [-ReachableTime <UInt32[]>] [-RetransmitTimeMs <UInt32>]
[-RouterDiscovery <RouterDiscovery>] [-ThrottleLimit <Int32>] [-WeakHostReceive <WeakHostReceive>] [-WeakHostSend <WeakHostSend>] [-Confirm
[<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
Set-NetIPInterface [-AdvertiseDefaultRoute <AdvertiseDefaultRoute>] [-AdvertisedRouterLifetime <TimeSpan>] [-Advertising <Advertising>]
[-AsJob [<SwitchParameter>]] [-AutomaticMetric <AutomaticMetric>] [-BaseReachableTimeMs <UInt32>] [-CimSession <CimSession[]>]
[-CurrentHopLimit <UInt32>] [-DadTransmits <UInt32>] [-Dhcp <Dhcp>] [-DirectedMacWolPattern <DirectedMacWolPattern>] [-EcnMarking
<EcnMarking>] [-ForceArpNdWolPattern <ForceArpNdWolPattern>] [-Forwarding <Forwarding>] [-IgnoreDefaultRoutes <IgnoreDefaultRoutes>]
[-InterfaceMetric <UInt32>] [-ManagedAddressConfiguration <ManagedAddressConfiguration>] [-NeighborUnreachabilityDetection
<NeighborUnreachabilityDetection>] [-NlMtuBytes <UInt32>] [-OtherStatefulConfiguration <OtherStatefulConfiguration>] [-PassThru
[<SwitchParameter>]] [-RetransmitTimeMs <UInt32>] [-RouterDiscovery <RouterDiscovery>] [-ThrottleLimit <Int32>] [-WeakHostReceive
<WeakHostReceive>] [-WeakHostSend <WeakHostSend>] -InputObject <CimInstance[]> [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]]
[<CommonParameters>]
The Set-NetIPInterface cmdlet modifies IP interface properties such as is DHCP, IPv6 neighbor discovery settings, router settings and Wake on
LAN (WoL) settings. The NetIPInterface object is automatically created by the computer and thus the NetIPInterface object has no New or Remove
verbs.
Without identifier parameters, this cmdlet sets all of the IP interface properties on the computer, including virtual interfaces and loopback
interfaces.
<
Where-Object
Get-NetIPInterface
Get-NetAdapter
<
EXAMPLE 1
PS C:\>Set-NetIPInterface –InterfaceIndex 12 –Dhcp Disabled
This example gets information IP interface object for the InterfaceIndex 12 and disabled DHCP on it.
EXAMPLE 2
PS C:\>Set-NetIPInterface –AddressFamily IPv6
This example gets information about IP interface configuration for all of the IP interfaces that have IPv6 addresses configured.
EXAMPLE 3
PS C:\>Get-NetAdapter | Where-Object –FilterScript {$_.LinkSpeed –Eq "100 Mbps"} | Set-NetIPInterface –InterfaceMetric 21
This example gets all of the network adapters on the computer with a link speed of 100 Mbps and sets the interface metric on them to 21.