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 |
Related Links
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應