Skip to content

Instantly share code, notes, and snippets.

@adamdriscoll
Last active January 29, 2020 16:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamdriscoll/76d80c2365bea7b68481bf49963e9256 to your computer and use it in GitHub Desktop.
Save adamdriscoll/76d80c2365bea7b68481bf49963e9256 to your computer and use it in GitHub Desktop.
Creates a new secret manager in Universal Automation
New-UASecretManager -Name 'PSSecretStore' -Get {
param($Name)
Get-SSSecret -Name $Name -KeyPath C:\keyfile.bin -StorePath C:\store.bin
} -Set {
param($Name, $Value)
Set-SSSecret -Name $Name -Value $Value -KeyPath C:\keyfile.bin -StorePath C:\store.bin
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment