Skip to content

Update get-VTFileReport.ps1#1

Open
pzlgajowy wants to merge 1 commit intocbshearer:masterfrom
pzlgajowy:patch-1
Open

Update get-VTFileReport.ps1#1
pzlgajowy wants to merge 1 commit intocbshearer:masterfrom
pzlgajowy:patch-1

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