Export-HgsGuardian
Exports a guardian that contains public keys.
Syntax
Export-HgsGuardian
[-InputObject] <CimInstance>
[-Path] <String>
[<CommonParameters>]
Description
The Export-HgsGuardian
cmdlet exports a guardian that contains public keys to an .xml
file.
Examples
Example 1: Export a guardian
Get-HgsGuardian -Name 'Guardian11' |
Export-HGsGuardian -Path 'C:\LocalHGSFiles\Guardian11.xml'
This command uses the Get-HgsGuardian
cmdlet to get the guardian named Guardian11
, and then
passes the object to the current cmdlet by using the pipeline operator. That cmdlet exports the
guardian to the specified file.
Parameters
-InputObject
Specifies the input to this cmdlet.
You can use this parameter, or you can pipe the input to this cmdlet.
Type: | CimInstance |
Aliases: | Guardian |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Path
Specifies the path to the file to write an XML representation of the guardian.
Type: | String |
Aliases: | FilePath |
Position: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |