lamw / lamw/vmware-scripts

VMKeystrokes.ps1 - Exception calling PutUsbScanCodes

Open
#67 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Perl
Stars
951
Forks
504
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with VMKeystrokes.ps1, especially the call at line 160, and reproduce the reported Set-VMKeystrokes command against vCenter 6.5. Investigate why PutUsbScanCodes rejects the request; done means the reported command no longer raises the incorrect-request exception, with the behavior verified against the stated environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.