Microsoft.PowerShell.SecretManagement

PowerShell SecretManagement 模块为用户存储和检索机密提供了一种便捷的方法。 机密存储在 SecretManagement 扩展保管库中。 扩展保管库是已注册到 SecretManagement 的 PowerShell 模块,并导出 SecretManagement 所需的五个模块函数。 扩展保管库可以在本地或远程存储机密。 扩展保管库注册到当前登录的用户上下文中,并且仅适用于该用户。

Microsoft.PowerShell.SecretManagement

Get-Secret

按名称查找并返回已注册保管库中的机密。

Get-SecretInfo

查找并返回有关已注册保管库中机密的元数据信息。

Get-SecretVault

查找并返回已注册的保管库信息。

Register-SecretVault

为当前用户注册 SecretManagement 扩展保管库模块。

Remove-Secret

从指定的注册扩展保管库中删除机密。

Set-Secret

将机密添加到已注册的 SecretManagement 保管库。

Set-SecretInfo

向当前存储在保管库中的机密添加或替换其他机密元数据。

Set-SecretVaultDefault

将提供的保管库名称设置为当前用户的默认保管库。

Test-SecretVault

运行扩展保管库自测试。

Unlock-SecretVault

解锁扩展保管库,以便可以在当前会话中访问它。

Unregister-SecretVault

从 SecretManagement 取消注册当前用户的扩展保管库。