Wrapper scripts that The Migus Group use to implement scripting and automation use-cases for Thycotic Secret Server users.
NOTE: Thycotic recommends their PowerShell Module which they distribute via PSGallery for automation use-cases. It fully integrates Secret Server with PowerShell.
. .\Initialize.ps1
cmdlet Initialize.ps1 at command pipeline position 1
Supply values for the following parameters:
Credential
User: admin
Password for user admin: ************
Url: https://tssweb
. .\Initialize.ps1 -Credential (Get-Credential) -Url 'https://tssweb'
Or
. .\Initialize.ps1 -Credential (Get-Credential) -Tenant 'mytenant'
- Put the three scripts in a folder that is in your
$env:Path
- Download and extract the Secret Server SDK for DevOps
$PSDefaultParameterValues['Invoke-Tss.ps1:ExePath'] = "C:\secretserver-sdk-*-win-x64\tss.exe"
$PSDefaultParameterValues['Invoke-Tss.ps1:ConfigDirPath'] = "${env:USERPROFILE}\.tss"
$PSDefaultParameterValues['Invoke-SecretServer.ps1:BaseUrl'] = 'https://my.local/SecretServer'
$PSDefaultParameterValues['Invoke-SecretServer.ps1:AccessToken'] = { Invoke-Tss.ps1 token }
Set-Alias -Name 'tss' -Value Invoke-Tss
tss init -- -k '...' -r Rule -u https://my.local/SecretServer/
Invoke-SecretServer.ps1 /version