-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #236 from MicrosoftDocs/main
8/26/2024 PM Publish
- Loading branch information
Showing
3 changed files
with
116 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
112 changes: 112 additions & 0 deletions
112
reference/ps-modules/Microsoft.PowerShell.SecretManagement/Unlock-SecretVault.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
--- | ||
external help file: Microsoft.PowerShell.SecretManagement.dll-Help.xml | ||
Module Name: Microsoft.PowerShell.SecretManagement | ||
ms.date: 08/26/2024 | ||
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.secretmanagement/unlock-secretvault?view=ps-modules&wt.mc_id=ps-gethelp | ||
schema: 2.0.0 | ||
--- | ||
|
||
# Unlock-SecretVault | ||
|
||
## SYNOPSIS | ||
Unlocks an extension vault so that it can be accessed in the current session. | ||
|
||
## SYNTAX | ||
|
||
``` | ||
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. | ||
|
||
## EXAMPLES | ||
|
||
### Example 1 | ||
|
||
```powershell | ||
Unlock-SecretVault -Name SecretStore -Password $SecurePassword | ||
Get-SecretInfo -Vault SecretStore | ||
``` | ||
|
||
```Output | ||
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 | ||
|
||
```powershell | ||
Unlock-SecretVault -Name CredMan -Password $SecurePassword | ||
``` | ||
|
||
```Output | ||
WARNING: Cannot unlock extension vault 'CredMan': The vault does not 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. | ||
|
||
## PARAMETERS | ||
|
||
### -Name | ||
|
||
Name of the vault to unlock. | ||
|
||
```yaml | ||
Type: System.String | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: True | ||
Position: 0 | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -Password | ||
Password used to unlock the vault. | ||
```yaml | ||
Type: System.Security.SecureString | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: True | ||
Position: 1 | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### CommonParameters | ||
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, | ||
-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, | ||
-WarningAction, and -WarningVariable. For more information, see | ||
[about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). | ||
## INPUTS | ||
### None | ||
## OUTPUTS | ||
### System.Object | ||
## NOTES | ||
## RELATED LINKS |