Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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]  string 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:
© 2014 Microsoft