Add method
Collapse the table of content
Expand the table of content

Add method of the PS_DhcpServerInDC class

Adds the server to the list of authorized DHCP servers in AD. A DHCP server running on a domain joined computer needs to be authorized in AD so that it can start leasing IP addresses on the network.

Syntax


uint32 Add(
  [in]  string         DnsName,
  [in]  string         IPAddress,
  [in]  boolean        PassThru,
  [out] DhcpServerInDC cmdletOutput
);

Parameters

DnsName [in]

DNS name of the DHCP server to be added to the list of authorized DHCP servers in AD

IPAddress [in]

IP address of the DHCP server which is to be added to the list of authorized DHCP server in AD

PassThru [in]

If this parameter is specified, the cmdlet returns the PowerShell object which is added.

cmdletOutput [out]

An embedded instance of a DhcpServerInDC object.

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_DhcpServerInDC

 

 

Show:
© 2016 Microsoft