vmware-scripts icon indicating copy to clipboard operation
vmware-scripts copied to clipboard

VMKeystrokes.ps1 - Exception calling PutUsbScanCodes

Open mfreeman451 opened this issue 7 years ago • 1 comments

Reproduction steps:

Powershell> . /VMKeystrokes.ps1 Powershell> Set-VMKeystrokes -VMName $VM -Stringinput "root" -ReturnCarriage $true

Connecting to VCENTER 6.5 (vSphere Client version 6.5.0.5300)

Exception calling "PutUsbScanCodes" with "1" argument(s): "Cannot complete the operation due to an incorrect request to the server." At C:\Users\mfreeman\Desktop\VMKeystrokes.ps1:160 char:5

  • $results = $vm.PutUsbScanCodes($spec)
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : VimException

mfreeman451 avatar Jun 26 '18 23:06 mfreeman451

I got this option on a machine that was an OVA. I wonder if there is a specific setting the VM must support or have in its VMX file in order for this to work

Gelob avatar Jan 11 '19 21:01 Gelob