The Set-NetIPv4Protocol cmdlet modifies the global IPv4 protocol configuration for a computer.
If you do not specify any parameters for the cmdlet, the cmdlet sets the default values for the global IPv6 protocol configuration.
This command increases the size of the cache of on-link neighbors on the subnet that are no longer referenced to 1,000.
The default value is 256.
Parameters
-AddressMaskReply
Specifies a value for address mask reply.
The cmdlet modifies the value for this setting.
Address mask reply specifies how the computer responds to ICMP address mask packets.
The acceptable values for this parameter are:
Enabled.
The computer responds to ICMP address mask packets.
Disabled.
The computer does not respond to ICMP address mask packets.
Parameter properties
Type:
AddressMaskReply
Default value:
None
Accepted values:
Disabled, Enabled
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-AsJob
Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to complete.
Parameter properties
Type:
SwitchParameter
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-CimSession
Runs the cmdlet in a remote session or on a remote computer.
Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet.
The default is the current session on the local computer.
Parameter properties
Type:
CimSession[]
Default value:
None
Supports wildcards:
False
DontShow:
False
Aliases:
Session
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-Confirm
Prompts you for confirmation before running the cmdlet.
Parameter properties
Type:
SwitchParameter
Default value:
False
Supports wildcards:
False
DontShow:
False
Aliases:
cf
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-DeadGatewayDetection
Specifies an array of values for dead gateway detection. The cmdlet gets IPv4 protocol
configurations that have these values.
Dead gateway detection is a feature that identifies gateways that are not operating properly and
switches the computer to a new default gateway if available.
The acceptable values for this parameter are:
Enabled
Disabled
Parameter properties
Type:
DeadGatewayDetection
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-DefaultHopLimit
Specifies a value for the default hop limit.
The cmdlet modifies the value for this setting.
This parameter sets the default value for the CurrentHopLimit property in the IP interface.
The current hop limit is the value that the IP interface writes in the hop limit field in all outbound IPv4 traffic.
When routers forward a packet, they decrement the hop limit by 1 and discard the packet when the hop limit is 0.
The default value is 128.
Parameter properties
Type:
UInt32
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-DhcpMediaSense
Specifies a value for Media Sense.
The cmdlet modifies the value for this setting.
Media Sense provides a mechanism for the network adapter to notify the protocol stack of media connect and disconnect events.
These events trigger the DHCP client to take an action, such as attempting to renew a DHCP lease or removing routes that are related to a disconnected network.
When Media Sense is enabled, the network parameters on the laptop of a roaming user are automatically and transparently updated without requiring a restart when the user moves from one location to another.
The acceptable values for this parameter are:
Enabled
Disabled
The default value is Enabled.
Parameter properties
Type:
DhcpMediaSense
Default value:
None
Accepted values:
Disabled, Enabled
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-GroupForwardedFragments
Specifies a value for group forwarded fragments.
The cmdlet modifies the value for this setting.
Group forwarded fragments specifies whether the IP interface collects fragments into groups before it forwards the fragments.
This parameter sets the GroupForwardedFragments property in the IP interface.
The acceptable values for this parameter are:
Enabled.
The IP interface collects IPv6 protocol fragments into groups before it forwards the fragments.
Disabled.
The IP interface does not collect IPv6 protocol fragments into groups before it forwards the fragments.
The default value is Disabled.
Parameter properties
Type:
GroupForwardedFragments
Default value:
None
Accepted values:
Disabled, Enabled
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-IcmpRedirects
Specifies a value for Internet Control Message Protocol (ICMP) redirect.
The cmdlet modifies the value for this setting.
ICMP redirect specifies whether to update the path cache in response to ICMP redirect packets.
This parameter sets the IcmpRedirects property in the IP interface.
The acceptable values for this parameter are:
Enabled.
The IP interface updates the path cache in response to ICMP redirect packets.
Disabled.
The IP interface does not update the path cache in response to ICMP redirect packets.
The default value is Enabled.
Parameter properties
Type:
IcmpRedirects
Default value:
None
Accepted values:
Disabled, Enabled
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-IGMPLevel
Specifies a value for Internet Group Management Protocol (IGMP) level.
The cmdlet modifies the value for this setting.
The IGMP level specifies the level of multicast support.
The acceptable values for this parameter are:
None
SendOnly
All
The default value is All.
Parameter properties
Type:
MldLevel
Default value:
None
Accepted values:
None, SendOnly, All
Supports wildcards:
False
DontShow:
False
Aliases:
MldLevel
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-IGMPVersion
Specifies a value for the IGMP version number.
The cmdlet modifies the value for this setting.
The IGMP version is the maximum IGMP version supported by the host.
Parameter properties
Type:
MldVersion
Default value:
None
Accepted values:
Version1, Version2, Version3
Supports wildcards:
False
DontShow:
False
Aliases:
MldVersion
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-InputObject
Specifies the input object that is used in a pipeline command.
Parameter properties
Type:
CimInstance[]
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
True
Value from pipeline by property name:
False
Value from remaining arguments:
False
-MediaSenseEventLog
Specifies a value for Media Sense event log.
The cmdlet modifies the value for this setting.
The acceptable values for this parameter are:
Enabled.
The IP interface logs DHCP Media Sense events in the event log for troubleshooting purposes.
Disabled.
The IP interface does not log DHCP Media Sense events in the event log.
The default value is Disabled.
Parameter properties
Type:
MediaSenseEventLog
Default value:
None
Accepted values:
Disabled, Enabled
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-MinimumMtu
Specifies a value, in bytes, for the network layer Maximum Transmission Unit (MTU).
For IPv4 the minimum value is 576 bytes.
For IPv6 the minimum is value is 1280 bytes.
For both IPv4 and IPv6, the maximum value is 2^32-1 (4294967295).
You cannot set values outside these ranges.
Parameter properties
Type:
UInt32
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-MulticastForwarding
Specifies a value for multicast forwarding.
The cmdlet modifies the value for this setting.
The acceptable values for this parameter are:
Enabled.
The computer can forward multicast packets.
Disabled.
The computer cannot forward multicast packets.
The default value is Disabled.
Parameter properties
Type:
MulticastForwarding
Default value:
None
Accepted values:
Disabled, Enabled
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-NeighborCacheLimitEntries
Specifies the maximum number of entries in the neighbor cache, which consists of all dynamic neighbors no longer referenced.
The cmdlet modifies the value for this setting.
The default value is 256.
Parameter properties
Type:
UInt32
Default value:
None
Supports wildcards:
False
DontShow:
False
Aliases:
NeighborCacheLimit
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-PassThru
Returns an object representing the item with which you are working.
By default, this cmdlet does not generate any output.
Parameter properties
Type:
SwitchParameter
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-RandomizeIdentifiers
Specifies a value for the randomization of identifiers.
The cmdlet modifies the value for this setting.
The acceptable values for this parameter are:
Enabled.
The IP interface randomizes identifiers when it creates an IP address.
Disabled.
The IP interface does not randomize identifiers when it creates an IP address.
The default value is Enabled.
Parameter properties
Type:
RandomizeIdentifiers
Default value:
None
Accepted values:
Disabled, Enabled
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-ReassemblyLimitBytes
Specifies a value for the maximum size of the reassembly buffer.
The cmdlet modifies the value for this setting.
Parameter properties
Type:
UInt32
Default value:
None
Supports wildcards:
False
DontShow:
False
Aliases:
ReassemblyLimit
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-RouteCacheLimitEntries
Specifies a value for the maximum number of route cache entries.
The cmdlet modifies the value for this setting.
The default value is 128.
Parameter properties
Type:
UInt32
Default value:
None
Supports wildcards:
False
DontShow:
False
Aliases:
RouteCacheLimit
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-SourceRoutingBehavior
Specifies a value for source routing behavior.
The cmdlet modifies the value for this setting.
The acceptable values for this parameter are:
DontForward.
The computer can receive but not forward source-routed packets.
Drop.
The computer drops source-routed packets.
The default value is DontForward.
Parameter properties
Type:
SourceRoutingBehavior
Default value:
None
Accepted values:
Forward, DontForward, Drop
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-ThrottleLimit
Specifies the maximum number of concurrent operations that can be established to run the cmdlet.
If this parameter is omitted or a value of 0 is entered, then Windows PowerShell® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer.
The throttle limit applies only to the current cmdlet, not to the session or to the computer.
Parameter properties
Type:
Int32
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
Parameter properties
Type:
SwitchParameter
Default value:
False
Supports wildcards:
False
DontShow:
False
Aliases:
wi
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.
The Microsoft.Management.Infrastructure.CimInstance object is a wrapper class that displays Windows Management Instrumentation (WMI) objects.
The path after the pound sign (#) provides the namespace and class name for the underlying WMI object.