Skip to content

Unwanted virtual hardware found invocation failed #757

Description

@tunes-in-my-head

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions