Share via


AddByDnsKey method of the PS_DnsServerTrustAnchor class

Adds a trust anchor with the specified key information to a DNS server.

Syntax

uint32 AddByDnsKey(
  [in]  string               Name,
  [in]  string               KeyProtocol,
  [in]  string               Base64Data,
  [in]  string               ComputerName,
  [in]  string               CryptoAlgorithm,
  [in]  boolean              PassThru,
  [out] DnsServerTrustAnchor cmdletOutput
);

Parameters

Name [in]

The name of the trust anchor.

KeyProtocol [in]

The protocol name. The default value is DNSSEC.

Base64Data [in]

The key data.

ComputerName [in]

Optional DNS server name.

CryptoAlgorithm [in]

Cryptographic algorithm to use for key generation.

PassThru [in]

Returns an object representing the item with which you are working. By default, this method does not generate any output.

cmdletOutput [out]

The output type is the type of the objects that the method emits.

Microsoft.Management.Infrastructure.CimInstance#DnsServerTrustAnchor

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_DnsServerTrustAnchor