Test-HgsClientConfiguration
Forces the HGS client to attest against the configured attestation servers.
Syntax
Test-HgsClientConfiguration
[-UsePrimary]
Test-HgsClientConfiguration
[-UseFallback]
Description
The Test-HgsClientConfiguration cmdlet forces the HGS client to attest against an HGS server and report back on the attestation attempt. Any cached attestation health certificates from recent attestation attempts will be ignored.
Examples
Example 1
PS C:\> Test-HgsClientConfiguration
Performs an attestation attempt using the primary HGS server. If the primary HGS server cannot be reached and fallback URLs are configured, the fallback HGS server will be used.
Example 2
PS C:\> Test-HgsClientConfiguration -UsePrimary
Performs an attestation attempt using the primary HGS server. If the primary HGS server cannot be reached, the cmdlet will fail.
Example 3
PS C:\> Test-HgsClientConfiguration -UseFallback
Performs an attestation attempt using the fallback HGS server.
Parameters
-UseFallback
Specifies that the HGS client should only attest against the fallback attestation server.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-UsePrimary
Specifies that the HGS client should only attest against the primary attestation server.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None
Outputs
An object containing the attestation server URL used and the results of the attestation attempt.
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應