Share via


Set method of the PS_DnsServerSetting class

Sets Different DNS server settings. One of the parameters other than RemoteName, Credentials, comments is mandatory. This should also take remote IP address from pipeline from other cmdlets. Hence we may need an additional IP address parameter. This applies to all the cmdlets.

Syntax

uint32 Set(
  [in]  DnsServerSetting InputObject,
  [in]  string           ComputerName,
  [in]  boolean          PassThru,
  [out] DnsServerSetting cmdletOutput
);

Parameters

InputObject [in]

Object containing DNS server settings.

ComputerName [in]

Specifies the remote computer on which to execute the command.

PassThru [in]

True to return the object that was modified by the method. By default, this method does not generate any output.

cmdletOutput [out]

Receives an embedded instance of the DnsServerSetting class.

Requirements

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

See also

PS_DnsServerSetting