alanrenouf / vCheck-vSphere

vCheck Daily Report for vSphere
MIT License
732 stars 326 forks source link

Unwanted virtual hardware found invocation failed #757

Open tunes-in-my-head opened 1 month ago

tunes-in-my-head commented 1 month ago

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

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

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 commented 4 weeks ago

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?