Microsoft.PowerShell.SecretManagement

PowerShell SecretManagement 模組提供方便的方式,讓使用者儲存和擷取秘密。 秘密會儲存在 SecretManagement 擴充保存庫中。 擴充保存庫是已向 SecretManagement 註冊的 PowerShell 模組,並匯出 SecretManagement 所需的五個模組函式。 擴充保存庫可以在本機或遠端儲存秘密。 擴充功能保存庫會註冊到目前登入的用戶內容,而且只能供該使用者使用。

Microsoft.PowerShell.SecretManagement

Get-Secret

Finds and returns a secret by name from registered vaults.

Get-SecretInfo

Finds and returns metadata information about secrets in registered vaults.

Get-SecretVault

Finds and returns registered vault information.

Register-SecretVault

Registers a SecretManagement extension vault module for the current user.

Remove-Secret

Removes a secret from a specified registered extension vault.

Set-Secret

Adds a secret to a SecretManagement registered vault.

Set-SecretInfo

Adds or replaces additional secret metadata to a secret currently stored in a vault.

Set-SecretVaultDefault

Sets the provided vault name as the default vault for the current user.

Test-SecretVault

Runs an extension vault self test.

Unlock-SecretVault

Unlocks an extension vault so that it can be accessed in the current session.

Unregister-SecretVault

Un-registers an extension vault from SecretManagement for the current user.