Partager via


NewByAcceptCertificates method of the MSFT_HgsGuardian class

Creates a guardian.

Syntax

uint32 NewByAcceptCertificates(
  [in]  string           Name,
  [in]  string           EncryptionCertificate,
  [in]  string           SigningCertificate,
  [in]  string           SigningCertificatePassword,
  [in]  string           EncryptionCertificatePassword,
  [in]  boolean          AllowExpired,
  [in]  boolean          AllowUntrustedRoot,
  [out] MSFT_HgsGuardian cmdletOutput
);

Parameters

Name [in]

A name to associate with this guardian when it is persisted to the guardian store.

EncryptionCertificate [in]

Password protected encryption certificate PFX file for the guardian that contains the public and private keys.

SigningCertificate [in]

Password protected Signing certificate PFX file for the guardian that contains the public and private keys.

SigningCertificatePassword [in]

Password to decrypt the Signing certificate PFX file.

EncryptionCertificatePassword [in]

Password to decrypt the Encryption certificate PFX file.

AllowExpired [in]

When specified, allows new guardian creation with certificates that are expired.

AllowUntrustedRoot [in]

When specified, allows new guardian to be created using self-signed certificates.

cmdletOutput [out]

On success, returns a MSFT_HgsGuardian instance containing the new Guardian object.

Requirements

Minimum supported client
Windows 10 [desktop apps only]
Minimum supported server
Windows Server 2016
Namespace
Root\Microsoft\Windows\Hgs
MOF
HgsClientWmi.mof
DLL
HgsClientWmi.dll

See also

MSFT_HgsGuardian