This is the built-in help made by Microsoft for the command 'Set-NetIPInterface', in PowerShell version 5 - as retrieved from
Windows version 'Microsoft Windows Server 2012 R2 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 an IP interface.
Set-NetIPInterface [[-InterfaceAlias] <String[]>] [-AddressFamily <AddressFamily[]>] [-AdvertiseDefaultRoute <AdvertiseDefaultRoute>] [-AdvertisedRouterLifetime <TimeSpan>]
[-Advertising <Advertising>] [-AsJob] [-AutomaticMetric <AutomaticMetric>] [-BaseReachableTimeMs <UInt32>] [-CimSession <CimSession[]>] [-CompartmentId <UInt32[]>]
[-CurrentHopLimit <UInt32>] [-DadRetransmitTimeMs <UInt32>] [-DadTransmits <UInt32>] [-Dhcp <Dhcp>] [-DirectedMacWolPattern <DirectedMacWolPattern>] [-EcnMarking
<EcnMarking>] [-ForceArpNdWolPattern <ForceArpNdWolPattern>] [-Forwarding <Forwarding>] [-IgnoreDefaultRoutes <IgnoreDefaultRoutes>] [-IncludeAllCompartments]
[-InterfaceIndex <UInt32[]>] [-InterfaceMetric <UInt32>] [-ManagedAddressConfiguration <ManagedAddressConfiguration>] [-NeighborDiscoverySupported
<NeighborDiscoverySupported[]>] [-NeighborUnreachabilityDetection <NeighborUnreachabilityDetection>] [-NlMtuBytes <UInt32>] [-OtherStatefulConfiguration
<OtherStatefulConfiguration>] [-PassThru] [-PolicyStore <String>] [-ReachableTime <UInt32[]>] [-RetransmitTimeMs <UInt32>] [-RouterDiscovery <RouterDiscovery>]
[-ThrottleLimit <Int32>] [-WeakHostReceive <WeakHostReceive>] [-WeakHostSend <WeakHostSend>] [-Confirm] [-WhatIf] [<CommonParameters>]
Set-NetIPInterface [-AdvertiseDefaultRoute <AdvertiseDefaultRoute>] [-AdvertisedRouterLifetime <TimeSpan>] [-Advertising <Advertising>] [-AsJob] [-AutomaticMetric
<AutomaticMetric>] [-BaseReachableTimeMs <UInt32>] [-CimSession <CimSession[]>] [-CurrentHopLimit <UInt32>] [-DadRetransmitTimeMs <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] [-RetransmitTimeMs <UInt32>]
[-RouterDiscovery <RouterDiscovery>] [-ThrottleLimit <Int32>] [-WeakHostReceive <WeakHostReceive>] [-WeakHostSend <WeakHostSend>] -InputObject <CimInstance[]> [-Confirm]
[-WhatIf] [<CommonParameters>]
The Set-NetIPInterface cmdlet modifies an IP interface, including Dynamic Host Configuration Protocol (DHCP), IPv6 neighbor discovery settings, router settings and Wake On
LAN (WOL) settings.
If you do not specify any parameters, this cmdlet sets all of the IP interface properties on the computer, including virtual interfaces and loopback interfaces.
<
Online Version: http://go.microsoft.com/fwlink/?LinkId=289166
Where-Object
Get-NetIPInterface
Get-NetAdapter
<
Example 1: Modify an interface by the index value
PS C:\>Set-NetIPInterface –InterfaceIndex 12 –Dhcp Disabled
This command modifies an IP interface object by using the interface index value of 12. The command also disables DHCP on the interface.
Example 2: Modify the interface metrics
PS C:\>Get-NetAdapter | Where-Object –FilterScript {$_.LinkSpeed –Eq "100 Mbps"} | Set-NetIPInterface –InterfaceMetric 21
This command modifies all of the network adapters on the computer with a link speed of 100 Mbps and sets the interface metric on them to 21.