Share via


Add method of the PS_DhcpServerv6Lease class

Adds a new IPv6 address lease to the DHCP server.

Syntax

uint32 Add(
  [in]  string            ComputerName,
  [in]  string            IPAddress,
  [in]  string            ClientDuid,
  [in]  uint32            Iaid,
  [in]  string            HostName,
  [in]  string            Description,
  [in]  datetime          LeaseExpiryTime,
  [in]  string            AddressType,
  [in]  boolean           PassThru,
  [out] DhcpServerv6Lease cmdletOutput
);

Parameters

ComputerName [in]

DNS name or IP address of the target computer running the DHCP server service.

IPAddress [in]

IPv6 address for which the lease record is being added.

ClientDuid [in]

DHCPv6 Client Identifier for the client for which the lease is being added.

Iaid [in]

Identity Association Identifier to be set on the IPv6 lease record. IAID is generated by the client for each network interface on the system.

HostName [in]

DNS name to be set on the lease record being added.

Description [in]

Description string to be set on the lease record being added.

LeaseExpiryTime [in]

Valid lease expiry time to be set on the IPv6 lease being added.

AddressType [in]

Type of IPv6 address being added. Valid values are IANA or IATA. Default: IANA.

IATA ("IATA")

IANA ("IANA")

PassThru [in]

If this parameter is specified, the cmdlet return the PowerShell objects which are deleted.

cmdletOutput [out]

An embedded instance of the DhcpServerv6Lease class.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\DHCP
MOF
DhcpServerPsProvider.mof
DLL
DhcpServerPsProvider.dll

See also

PS_DhcpServerv6Lease