Compartilhar via


Set method of the Ps_DnsServerClientSubnet class

Updates a client subnet record in the client subnet database on the DNS server.

Syntax

uint32 Set(
  [in]  string                Name,
  [in]  string                IPv4Subnet[],
  [in]  string                IPv6Subnet[],
  [in]  string                Action,
  [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.

Action [in]

The action to perform on the record during the update operation.

The possible values are:

Add

Appended the update information to the record.

Remove

Removed the update information from the record.

Reset

Replaced the client subnet record with the update information.

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 updated 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