Windows Dev Center

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_DnsServerResourceRecordDS class

Adds a DS resource record.


uint32 Add(
  [in]  string   Name,
  [in]  string   CryptoAlgorithm,
  [in]  datetime TimeToLive,
  [in]  boolean  AgeRecord,
  [in]  string   Digest,
  [in]  string   DigestType,
  [in]  uint16   KeyTag,
  [in]  string   ComputerName,
  [in]  string   ZoneName,
  [in]  boolean  PassThru,
  [in]  string   ZoneScope,
  [out] string   cmdletOutput


Name [in]

Specifies the name of the resource record that this method adds to the DNS server.

CryptoAlgorithm [in]

Specifies the cryptographic algorithm the server uses to generate keys. The acceptable values for this parameter are:

RsaSha1 (RsaSha1)
RsaSha256 (RsaSha256)
RsaSha512 (RsaSha512)
RsaSha1NSec3 (RsaSha1NSec3)
ECDsaP256Sha256 (ECDsaP256Sha256)
ECDsaP384Sha384 (ECDsaP384Sha384)
TimeToLive [in]

Specifies the Time to Live (TTL) value, in seconds, for a resource record. Other DNS servers use this length of time to determine how long to cache a record.

AgeRecord [in]

Indicates that the DNS server uses a time stamp for the resource record that this method adds. A DNS server can scavenge resource records that have become stale based on a time stamp.

Digest [in]

The DS digest data.

DigestType [in]

Specifies the type of digest data. The acceptable values for this parameter are:

Sha1 (Sha1)
Sha256 (Sha256)
Sha384 (Sha384 )
KeyTag [in]

Specifies a key tag.

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.

ZoneName [in]

Specifies the name of a DNS zone. The method adds the record to this zone.

PassThru [in]

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

ZoneScope [in]

Name of the zone scope.

Windows Server 2012:  This parameter is supported beginning with Windows Server 2012 R2.

cmdletOutput [out]

Receives and embedded instance of the DnsServerResourceRecordDS class.


Minimum supported client

None supported

Minimum supported server

Windows Server 2012







See also




Community Additions

© 2015 Microsoft