Freigeben über


AddByInputObject method of the PS_DnsServerResourceRecord class

Adds the resource record to a specified zone in a DNS server.

Syntax

uint32 AddByInputObject(
  [in]  DnsServerResourceRecord InputObject,
  [in]  string                  ZoneName,
  [in]  string                  ComputerName,
  [in]  boolean                 AllowUpdateAny,
  [in]  boolean                 PassThru,
  [in]  boolean                 Force,
  [in]  string                  ZoneScope,
  [in]  string                  VirtualizationInstance,
  [out] DnsServerResourceRecord cmdletOutput
);

Parameters

InputObject [in]

Specifies the input to this method. This parameter takes an object of type Microsoft.Management.Infrastructure.CimInstance.DnsServerResourceRecord as input.

ZoneName [in]

Specifies the name of the DNS server zone.

ComputerName [in]

Specifies a DNS server. If you do not specify this parameter, the command runs on the local system. You can specify an IP address or any value that resolves to an IP address, such as a fully qualified domain name (FQDN), host name, or NETBIOS name.

AllowUpdateAny [in]

Allow any authenticated user to update DNS record with same owner name

PassThru [in]

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

Force [in]

Adds a resource record without prompting you for confirmation. By default, the method prompts you for confirmation before it proceeds.

ZoneScope [in]

Name of the zone scope.

Windows Server 2012: Not supported.

VirtualizationInstance [in]

Unique identifier of the virtualization instance.

Windows Server 2012 R2 and Windows Server 2012: This parameter is unavailable prior to Windows Server 2016.

cmdletOutput [out]

Receives an embedded instance of the DnsServerResourceRecord 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_DnsServerResourceRecord