PowerShell Logo Small

Remove-NetIPAddress



This is the built-in help made by Microsoft for the command 'Remove-NetIPAddress', 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.

SYNOPSIS

Deletes an IP address and the configuration properties of that IP address.

SYNTAX


Remove-NetIPAddress [[-IPAddress] <String[]>] [-AddressFamily <AddressFamily[]>] [-AddressState <AddressState[]>] [-AsJob [<SwitchParameter>]]
[-CimSession <CimSession[]>] [-DefaultGateway <String>] [-InterfaceAlias <String[]>] [-InterfaceIndex <UInt32[]>] [-PassThru
[<SwitchParameter>]] [-PolicyStore <String>] [-PreferredLifetime <TimeSpan[]>] [-PrefixLength <Byte[]>] [-PrefixOrigin <PrefixOrigin[]>]
[-SkipAsSource <Boolean[]>] [-SuffixOrigin <SuffixOrigin[]>] [-ThrottleLimit <Int32>] [-Type <Type[]>] [-ValidLifetime <TimeSpan[]>] [-Confirm
[<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
Remove-NetIPAddress [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-PassThru [<SwitchParameter>]] [-ThrottleLimit <Int32>]
-InputObject <CimInstance[]> [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Remove-NetIPAddress cmdlet deletes IP address and the configuration properties of that IP address. To remove a specific IP address object,
be sure to use the IPv4 Address parameter or IPv6 Address parameter. Other parameters will remove all IP addresses with the matching property.



<

RELATED LINKS

Get-NetIPAddress
New-NetIPAddress
Set-NetIPAddress

REMARKS

<

Examples


EXAMPLE 1

PS C:\>New-NetIPAddress –InterfaceIndex 12 –IPAddress 192.168.0.1


The remove cmdlet then removes it.
PS C:\>Remove-NetIPAddress –IPAddress 192.168.0.1



This example adds a new IP address.




EXAMPLE 2

PS C:\>Get-NetIPAddress –IPAddress 192.168.0.1 | Remove-NetIPAddress



This example provides an alternative method to EXAMPLE 1 that removes all of the IP addresses that have an IP address of 192.168.0.1.




EXAMPLE 3

PS C:\>Remove-NetIPAddress –PrefixOrigin Manual



This example removes all of the IP addresses that have a manually configured prefix origin.