Partager via


Import method of the MSFT_HgsGuardian class

Imports a guardian from an XML file

Syntax

uint32 Import(
  [in]  string           Path,
  [in]  string           Name,
  [in]  boolean          AllowExpired,
  [in]  boolean          AllowUntrustedRoot,
  [out] MSFT_HgsGuardian cmdletOutput
);

Parameters

Path [in]

A path to an XML file containing the guardian information.

Name [in]

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

AllowExpired [in]

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

AllowUntrustedRoot [in]

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

cmdletOutput [out]

On success, returns a MSFT_HgsGuardian object containing the imported guardian.

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