Posh-VirusTotal
Posh-VirusTotal copied to clipboard
Set-VTAPIKey fails in pscore6+
From PSCore6 Set-Content no longer uses the option -encoding Byte
having the same issue.
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.
Here is the error:
Using PowerShell 7
Open to any recommendations :) I don’t have a VT key anymore to test
On Jan 16, 2020, at 11:12 AM, Max [email protected] wrote:
Here is the error: https://user-images.githubusercontent.com/27040764/72536661-f113e580-387a-11ea-9220-8ff5558c19ea.png Using PowerShell 7
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/darkoperator/Posh-VirusTotal/issues/5?email_source=notifications&email_token=AAD7IHTE5PTIXY4XBOLOQBTQ6B2OZA5CNFSM4JGSU3ZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJEM5BI#issuecomment-575196805, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAD7IHWPJLULX6HO6P4YXYDQ6B2OZANCNFSM4JGSU3ZA.
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
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.