Test-SecretVault
Runs an extension vault self test.
Syntax
Default (Default)
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 isn't specified, this cmdlet runs the tests for all registered vaults.
Parameter properties
Type: | String[] |
Default value: | None |
Supports wildcards: | True |
DontShow: | False |
Parameter sets
(All)
Position: | 1 |
Mandatory: | False |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.