Skip to content
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

Unwanted virtual hardware found invocation failed #757

Open
tunes-in-my-head opened this issue Jul 30, 2024 · 1 comment
Open

Unwanted virtual hardware found invocation failed #757

tunes-in-my-head opened this issue Jul 30, 2024 · 1 comment

Comments

@tunes-in-my-head
Copy link

I have this plugin enabled (along with many others) but it isn't added to the report and I get this error when stepping through the config:

Find unwanted virtual hardware [$true]:

Method invocation failed because [System.Object[]] does not contain a method named 'op_Subtraction'.
At C:\Tools\VMware\vCheck\vCheck.ps1:215 char:5

  •             $Line++
    
  •             ~~~~~~~
    
    • CategoryInfo : InvalidOperation: (op_Subtraction:String) [], RuntimeException
    • FullyQualifiedErrorId : MethodNotFound

Cannot convert the "System.Object[]" value of type "System.Object[]" to type "System.Int32".
At C:\Tools\VMware\vCheck\vCheck.ps1:224 char:4

  •         $out += $File[$Endline..($file.count - 1)]
    
  •         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (:) [], RuntimeException
    • FullyQualifiedErrorId : ConvertToFinalInvalidCastException

I have done some basic research on the op_Subtraction error but it hasn't gotten me very far. This is running against vCSA version 8.02, if that matters.

@tunes-in-my-head
Copy link
Author

I find that if I configure vcheck unwanted virtual hardware with "VirtualUSBController" instead of "$true", I no longer receive the error. Is there a way to do notify on all unwanted hardware types and how many are available? Is it correct that the syntax for these VirtualUSBController, VirtualParallelPort, VirtualSerialPort?

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

No branches or pull requests

1 participant