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. |