13 lines
540 B
PowerShell
13 lines
540 B
PowerShell
<# default user /etc/wsl.conf
|
|
[user]
|
|
default = zmeier
|
|
#>
|
|
|
|
Find-Module Microsoft.PowerShell.Secret*
|
|
Find-Module Microsoft.PowerShell.Secret* | Install-Module -Scope CurrentUser
|
|
Register-SecretVault -Name SecretStore -Module Microsoft.PowerShell.SecretStore -DefaultVault
|
|
Set-Secret -Name PrvCred -Secret (Get-Credential)
|
|
# enter credential object to save in vault
|
|
# then enter password to secure the vault
|
|
Get-SecretStoreConfiguration # view vault settings
|
|
Set-SecretStoreConfiguration -Interaction None # always allow access to current user |