lamw / lamw/vmware-scripts

Incorrect request to server

Open
#66 6 comments 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

After finally figuring out how to run the "VMKeystrokes.ps1" script, I get the following error:

PowerCLI C:\> Set-VMKeystrokes -VMName $VM -StringInput "password" -ReturnCarriage $true
Sending keystrokes to ServerName ...

Exception calling "PutUsbScanCodes" with "1" argument(s): "Cannot complete the
operation due to an incorrect request to the server."
At C:\Projects\Automation\VMKeystrokes.ps1:159 char:5
+     $results = $vm.PutUsbScanCodes($spec)
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : VimException

Any idea what might be causing that?

Thanks,
Danni

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 at line 159 and reproduce the PowerCLI command shown in the report. Investigate why PutUsbScanCodes rejects the request for the target server, using the surrounding script context and VMware API behavior. Done means identifying the cause and documenting or correcting the request so the command succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
tooling
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.