使用vmrun将键击发送到来宾操作系统

问题描述 投票:2回答:1

我找不到如何使用typeKeystrokesInGuest命令vmrun工具的文档或示例。

我尝试发送密钥代码,如30,我尝试发送Some text,但总是得到Insufficient permissions in the host operating system。我想,我必须给予正确的许可,但我不知道在哪里,我不知道是否正确地使用了描述的命令。

vmware vmware-tools vmrun
1个回答
1
投票

如果我没记错的话,vmrun使用的VIX API将被弃用。新选项是使用vSphere 6.5 API提供的PutUsbScanCodes方法,并且不依赖于在来宾操作系统上运行的VMware Tools。

有关更多信息,请访问:https://www.virtuallyghetto.com/2017/09/automating-vm-keystrokes-using-the-vsphere-api-powercli.html

© www.soinside.com 2019 - 2024. All rights reserved.