thycotic-ps / thycotic.secretserver

PowerShell module for automating with Thycotic Secret Server REST API
https://thycotic-ps.github.io/thycotic.secretserver
MIT License
68 stars 22 forks source link

Get-TssSecretAttachment does not download a file (windows auth) #304

Closed psinha4569 closed 1 year ago

psinha4569 commented 2 years ago

Verified issue does not already exist?

Yes

What error did you receive

No error returned

Please run the command using -Verbose

PS C:\Windows\system32> Get-TssSecretAttachment -Path c:\temp -Slug attachment -TssSession $session -Verbose VERBOSE: Command invocation: Get-TssSecretAttachment -Path:c:\temp -Slug:attachment -TssSession:TssSessionObject -Ver bose:True

Provide a test case or steps to reproduce

!!Secret is in a certificate template. I'm trying to get to a .zip file in the attachment field.

$session = New-TssSession -SecretServer 'https://FQDN/SecretServer' -UseWindowsAuth

$secret = Get-TssSecret -TssSession $session -Id 17 $secret.GetFileFields()

SlugName : attachment Filename : certs.zip

Get-TssSecretAttachment -Path c:\temp -Slug attachment -TssSession $session

Expected behavior

Expect file to be downloaded to c:\temp

What Edition of Secret Server?

Professional

What version of Secret Server

11.0

What PowerShell host was used when producing this error

Windows PowerShell (powershell)

PowerShell Host Version

Name Value


PSVersion 5.1.14393.5127
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14393.5127
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

tylerezimmerman commented 1 year ago

@psinha4569 we just released a new version of the plug-in, can you confirm if this issue still exists? Also please try using Powershell 7.