Closed jmeldrum76 closed 10 months ago
After discussing with @jmeldrum76, it seems this is more of an enhancement request to provide the full path being written to.
This issue is stale because it has been open for 60 days with no activity.
This issue was closed because it has been inactive for 30 days since being marked as stale.
Environment
PS C:\Users\johndoe> (Get-Module -ListAvailable VenafiPS).Version
Major Minor Build Revision
5 4 1 -1 4 6 3 -1 4 1 4 -1
Steps to reproduce
Run the following line in a script: $CertDownloaded = Export-VenafiCertificate -CertificateId $($CertData.Path) -Format 'Base64' -OutPath $ExportDestinationPath -VenafiSession $session -Verbose -PassThru Note: change the variables to match your system.
Expected behavior
I am expecting to receive and object back with the certificate filename and path
Actual behavior
I get an error: A parameter cannot be found that matches parameter name 'PassThru' Note: If I remove the -PassThru, the code works.
Screenshots