Posh-VirusTotal icon indicating copy to clipboard operation
Posh-VirusTotal copied to clipboard

Set-VTAPIKey fails in pscore6+

Open vaanguard opened this issue 5 years ago • 6 comments

From PSCore6 Set-Content no longer uses the option -encoding Byte

vaanguard avatar Oct 30 '19 02:10 vaanguard

having the same issue.

Tr4pSec avatar Jan 16 '20 15:01 Tr4pSec

Module is for PS 5.1, will have to see it the VT people will lend me a key for testing so as to be able to re-write it for 6

On Jan 16, 2020, at 11:07 AM, Max [email protected] wrote:

having the same issue.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/darkoperator/Posh-VirusTotal/issues/5?email_source=notifications&email_token=AAD7IHWAIAXHDQFOECMGFQDQ6BZ4FA5CNFSM4JGSU3ZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJEMKBA#issuecomment-575194372, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAD7IHUGVDUSXXKJVC5ZUSDQ6BZ4FANCNFSM4JGSU3ZA.

darkoperator avatar Jan 16 '20 15:01 darkoperator

Here is the error: image

Using PowerShell 7

Tr4pSec avatar Jan 16 '20 15:01 Tr4pSec

Seems there is a new Param for it https://www.jonathanmedd.net/2017/12/powershell-core-does-not-have-encoding-byte-replaced-with-new-parameter-asbytestream.html https://www.jonathanmedd.net/2017/12/powershell-core-does-not-have-encoding-byte-replaced-with-new-parameter-asbytestream.html would need to set a case statement for it and switch parameter depending on version

darkoperator avatar Jan 16 '20 15:01 darkoperator

Problems in PS 7.2 also

Set-VTAPIKey: Cannot process argument transformation on parameter 'MasterPassword'. Cannot convert the "MYKEY" value of type "System.String" to type "System.Security.SecureString".

where MYKEY is my private token.

x0341 avatar Sep 30 '22 15:09 x0341