Test-SecretVault
Runs an extension vault self test.
Syntax
Test-SecretVault
[-Name <String[]>]
[<CommonParameters>]
Description
This cmdlet runs an extension vault self-test, by running the internal vault Test-SecretVault
command. It returns $true
if all tests succeeded, and $false
otherwise. Information on failing
tests is written to the error stream as error records. For more information during the test run use
the Verbose parameter.
Examples
Example 1
PS C:\> Test-SecretVault -Name CredMan -Verbose
VERBOSE: Invoking command Test-SecretVault on module Microsoft.PowerShell.CredManStore.Extension
VERBOSE: Vault CredMan succeeded validation test
True
This example runs the self-tests on the CredMan
extension vault. All tests succeeded.
Parameters
-Name
Specifies the name of one or more vaults to test. Enter a name or name pattern. Wildcard characters
(*
) are permitted.
If the Name parameter is not specified, this cmdlet runs the tests for all registered vaults.
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | True |
Inputs
None