|
发表于 2024-4-10 16:38:01
|
显示全部楼层
北京市北京市
带有登录账号参数的函数都需要安装VMTools工具,否则无法使用。“VM官方命令行文档:https://docs.vmware.com/cn/VMware-Workstation-Pro/17/com.vmware.ws.using.doc/GUID-FF306A59-080E-497E-857D-F45125927FB3.html”
比如运行cmd
vmrun.exe -T ws -gu "Administrator" -gp "" runScriptInGuest "G:\虚拟系统\Windows 11 x64\Windows 11 x64.vmx" "" "cmd.exe /k ipconfig"
注册表
vmrun.exe -T ws -gu "Administrator" -gp "" runScriptInGuest "G:\虚拟系统\Windows 11 x64\Windows 11 x64.vmx" "" "reg add HKLM\SYSTEM\CurrentControlSet\Control\Lsa /v LimitBlankPasswordUse /t REG_DWORD /d 0 /f"
截屏存本地我这试着是好使
vmrun.exe -T ws -gu "Administrator" -gp "" captureScreen "G:\虚拟系统\Windows 11 x64\Windows 11 x64.vmx" D:\1.png |
|