thycotic-ps / secretserver

Secret Server scripts that can be utilized to extend the abilities of Secret Server in your environment.
https://delinea.com/products/secret-server/
MIT License
24 stars 20 forks source link

sync-secrets-v2.ps1 error New-tssSession #39

Open Jamlmalik12 opened 1 month ago

Jamlmalik12 commented 1 month ago

Hello!

I have already used the syncsecretpassword.ps1 script in my environment and was able to use it smoothly.

Now there is a need to use the sync-secrets-v2.ps1 script to synchronize the Private Key between secrets.

But when using it in a pipeline we receive an error because Delinea always uses powershel v5 and therefore it is unable to execute the commands that come from the Thycotic Powershell Module, for example New-TssSession.

Should this happen? Is there any way around this?

Can we use the syncsecretpassword.ps1 script to synchronize private keys?

Screenshot 2024-10-15 155410

jagger commented 4 days ago

https://github.com/thycotic-ps/secretserver/blob/main/event-pipelines/sync-secrets/sync-secrets-v2.ps1

will need to be rewritten to not require the use of thycotric.secretserver