Table of contents
TLS
TOC
Collapse the table of content
Expand the table of content

Export-HgsGuardian

Brian Lich|Last Updated: 3/29/2017

SYNOPSIS

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

PS C:\> 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
Parameter Sets: (All)
Aliases: 

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-Path

Specifies the path to the file to write an XML representation of the guardian.

Type: String
Parameter Sets: (All)
Aliases: FilePath

Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

Get-HgsGuardian

Import-HgsGuardian

New-HgsGuardian

Remove-HgsGuardian

© 2017 Microsoft