Files
Sandbox/WSL.ps1
T
Zack Meier 03dba08135 sync
2026-04-15 15:42:41 -05:00

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