Creates and configures an IP address.

New-NetIPAddress [-IPAddress] [-AddressFamily {IPv4 | IPv6}] [-CimSession []] [-DefaultGateway []] [-PolicyStore []] [-PreferredLife
time []] [-PrefixLength []] [-SkipAsSource []] [-ThrottleLimit []] [-Type {Unicast | Anycast}] [-ValidLifetime []] -InterfaceAlia
s [-Confirm] [-WhatIf] []

New-NetIPAddress [-IPAddress] <String> [-AddressFamily {IPv4 | IPv6}] [-CimSession [<CimSession[]>]] [-DefaultGateway [<String>]] [-PolicyStore [<String>]] [-PreferredLife
time [<TimeSpan>]] [-PrefixLength [<Byte>]] [-SkipAsSource [<Boolean>]] [-ThrottleLimit [<Int32>]] [-Type {Unicast | Anycast}] [-ValidLifetime [<TimeSpan>]] -InterfaceInde
x <UInt32> [-Confirm] [-WhatIf] [<CommonParameters>]

The New-NetIPAddress cmdlet creates and configures an IP address. To create a specific IP address object, specify either an IPv4 address or an IPv6 address, and an interfa
ce index or interface alias. We recommend that you define the prefix length, also known as a subnet mask, and a default gateway.

If you run this cmdlet to add an IP address to an interface on which DHCP is already enabled, then DHCP is automatically disabled. If Duplicate Address Detection (DAD) is
enabled on the interface, the new IP address is not usable until DAD successfully finishes, which confirms the uniqueness of the IP address on the link.