PowerShellプラグイン
PowerShellのSecret Managementモジュールを使用して、KeeperシークレットマネージャーのPowerShellプラグインを通じてシークレットにアクセス
最終更新
Install-Module -Name Microsoft.PowerShell.SecretManagementInstall-Module -Name SecretManagement.KeeperInstall-Module -Name Microsoft.Powershell.SecretStoreInstall-Module -Name SecretManagement.KeyChainRegister-SecretVault -Name LocalStore -ModuleName Microsoft.Powershell.SecretStoreRegister-SecretVault -Name LocalStore -ModuleName SecretManagement.KeyChainRegister-KeeperVault -Name Keeper -LocalVaultName LocalStore -OneTimeToken XXX Register-KeeperVault -Name Keeper -LocalVaultName LocalStore -Config XXXSet-SecretVaultDefault keeperGet-SecretInfo -Vault <KEEPER VAULT NAME>PS> Get-SecretInfo -Vault Keeper
Name Type VaultName
---- ---- ---------
bf3dg-99-Juh3feswgtFxg Home SSH Hashtable Keeper
_3zT0HvBtRdYzKTMw1IySA ACME Login Hashtable KeeperGet-Secret -Vault <KEEPER VAULT NAME> <RECORD NAME or UID> -AsPlainTextPS> Get-Secret -Vault Keeper "ACME Login" -AsPlainText
Name Value
---- -----
login user2
password 123
Files {file1.json, file2.zip}Get-Secret -Vault <KEEPER VAULT NAME> <RECORD NAME OR UID>.<FIELD> -AsPlainTextPS> Get-Secret "ACME Login.password" -AsPlainText
gmzN6E8@9E97%xPB6Pg0Set-Secret -Vault <KEEPER VAULT NAME> <RECORD NAME OR UID>.<FIELD> <VALUE TO SET>PS> Set-Secret -Vault Keeper "ACME Login.url" "acme.com"PS> Set-Secret -Vault Keeper "ACME Login.url" "acme.com" -Vault keeperPS> Set-Secret -Vault Keeper "ACME Login.API Key" "sk-new-key-456"PS> Set-Secret -Vault Keeper "ACME Login.date" "1014402600999"PS> Set-Secret -Vault Keeper "ACME Login.Phone" '{"region":"US","number":"5551234567"}'Get-Secret -Vault <KEEPER VAULT NAME> <RECORD NAME OR UID>.files[<FILENAME>] `
| Set-Content -Path <FILE PATH> -AsByteStreamPS> Get-Secret -Vault Keeper my_record.files[file1.json] `
| Set-Content -Path ./file1.json -AsByteStream