Share via


Add method of the Ps_DnsServerClientSubnet class

Adds a client subnet record to the client subnet database on the DNS server.

Syntax

uint32 Add(
  [in]  string                Name,
  [in]  string                IPv4Subnet[],
  [in]  string                IPv6Subnet[],
  [in]  boolean               PassThru,
  [in]  string                ComputerName,
  [out] DnsServerClientSubnet cmdletOutput
);

Parameters

Name [in]

The name of the client subnet record.

IPv4Subnet [in]

The IPV4 subnet list for the record in Classless Inter-Domain Routing (CIDR) notation.

IPv6Subnet [in]

The IPV6 subnet list for the record in Classless Inter-Domain Routing (CIDR) notation.

PassThru [in]

True to return the client subnet record in the cmdletOutput parameter; otherwise, false.

ComputerName [in]

The name of the remote computer on which to execute the command.

cmdletOutput [out]

When this method returns, this parameter receives an embedded instance of the DnsServerClientSubnet object that represents the added subnet record.

Return value

If this operation succeeds, this method returns "0"; otherwise, it returns a WMI error code.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2016
Namespace
Root\Microsoft\Windows\Dns
MOF
DnsServerPSProvider.mof
DLL
DnsServerPSProvider.dll

See also

Ps_DnsServerClientSubnet