Skip to content

Update get-VTFileReport.ps1 #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pzlgajowy
Copy link

hello
while runing script, I received error:
"Write-Host : Cannot process the color because -1 is not a valid color. Nazwa parametru: value
Rzeczywista wartość to -1.
At C:\Users%UserName%\Documents\Windows PowerShell\VirusTotal\get-VTFileReport.ps1:53 char:65

  • ... "Positives : " -NoNewline; Write-Host $VTresult.positives -f $fore
  •                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (:) [Write-Host], ArgumentOutOfRangeException
    • FullyQualifiedErrorId : SetInvalidForegroundColor,Microsoft.PowerShell.Commands.WriteHostCommand
      "

I suggest solusion from stackOverflow community (https://stackoverflow.com/questions/26582880/powershell-get-default-foreground-color-for-write-host)

Thank you for your usefull tool
Best regards

Pawel

hello 
while runing script, I received error:
"Write-Host : Cannot process the color because -1 is not a valid color.
Nazwa parametru: value
Rzeczywista wartość to -1.
At C:\Users\%UserName%\Documents\Windows PowerShell\VirusTotal\get-VTFileReport.ps1:53 char:65
+ ...  "Positives   : " -NoNewline; Write-Host $VTresult.positives -f $fore
+                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Write-Host], ArgumentOutOfRangeException
    + FullyQualifiedErrorId : SetInvalidForegroundColor,Microsoft.PowerShell.Commands.WriteHostCommand
"

I suggest solusion from stackOverflow community (https://stackoverflow.com/questions/26582880/powershell-get-default-foreground-color-for-write-host)

Thank you for your usefull tool
Best regards
--
Pawel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant