Microsoft.PowerShell.SecretManagement Module
PowerShell SecretManagement モジュールは、ユーザーがシークレットを格納および取得するための便利な方法を提供します。 シークレットは SecretManagement 拡張コンテナーに格納されます。 拡張機能コンテナーは、SecretManagement に登録されている PowerShell モジュールであり、SecretManagement で必要な 5 つのモジュール関数をエクスポートします。 拡張機能コンテナーは、シークレットをローカルまたはリモートに格納できます。 拡張機能コンテナーは、現在ログインしているユーザー コンテキストに登録され、そのユーザーのみが使用できます。
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. |