Unlock-SecretVault
Unlocks an extension vault so that it can be accessed in the current session.
Syntaxe
Default (Výchozí)
Unlock-SecretVault
[-Name] <String>
[-Password] <SecureString>
[<CommonParameters>]
Description
This cmdlet unlocks an extension vault using the provided Password. This allows a vault that requires password authentication to operate without first having to prompt the user. Not all extension vaults require password authentication. The cmdlet returns a warning if the extension vault doesn't support unlocking via password.
Příklady
Example 1
Unlock-SecretVault -Name SecretStore -Password $SecurePassword
Get-SecretInfo -Vault SecretStore
Name Type VaultName
---- ---- ---------
Secret1 SecureString SecretStore
Secret2 SecureString SecretStore
This example uses the command to unlock the SecretStore
vault. It then runs the Get-SecretInfo
command on the vault without being prompted for the vault password.
Example 2
Unlock-SecretVault -Name CredMan -Password $SecurePassword
WARNING: Can't unlock extension vault 'CredMan': The vault doesn't support the Unlock-SecretVault
function.
This example uses the command to unlock the CredMan
vault. But the vault doesn't support unlocking
so the command has no effect. A warning is displayed informing that CredMan
vault doesn't support
unlocking.
Parametry
-Name
Name of the vault to unlock.
Vlastnosti parametru
Typ: | String |
Default value: | None |
Podporuje zástupné znaky: | False |
DontShow: | False |
Sady parametrů
(All)
Position: | 0 |
Povinné: | True |
Hodnota z kanálu: | False |
Hodnota z kanálu podle názvu vlastnosti: | False |
Hodnota ze zbývajících argumentů: | False |
-Password
Password used to unlock the vault.
Vlastnosti parametru
Typ: | SecureString |
Default value: | None |
Podporuje zástupné znaky: | False |
DontShow: | False |
Sady parametrů
(All)
Position: | 1 |
Povinné: | True |
Hodnota z kanálu: | False |
Hodnota z kanálu podle názvu vlastnosti: | False |
Hodnota ze zbývajících argumentů: | 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.