lamw / vmware-scripts

Various scripts for VMware based solutions
http://www.williamlam.com/
BSD 2-Clause "Simplified" License
859 stars 489 forks source link

VMKeystrokes.ps1 - Exception calling PutUsbScanCodes #67

Open mfreeman451 opened 6 years ago

mfreeman451 commented 6 years ago

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

Gelob commented 5 years ago

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