Hi, I am a beginner, and I have a Windows 2012R2 VM with guest agent installation. And I am now trying to use qm guest exec VMID to run a program I have put in the Disk C: of the VM, Which is "C:\\program.exe", this program have 4 args I need to pass in, I've tried many types and I can't run it, can you give me an example?I can't get the answer from google..
So, can you give me an example to do this well? Thank you very much~
Code:
root@node-us:~# qm guest exec 101 "start C:\\program.exe arg1 arg2 arg3 arg4"
Agent error: Guest agent command failed, error was 'Failed to execute child process (Invalid argument)'
root@node-us:~# qm guest exec 101 "C:\\program.exe" "arg1 arg2 arg3 arg4"
Agent error: Guest agent command failed, error was 'Failed to execute child process (Invalid argument)'
...
So, can you give me an example to do this well? Thank you very much~