Think I'm being stupid with syntax here, fresh install with Serial drivers and qm guest agents installed
I'm having trouble getting powershell commands working
e.g.
Powershell -Command dir works from the guest machine
Thanks in advance
EDITS: rewrote question after solving original cmd.exe problem
I've managed to cmd working
e.g.
qm guest exec 108 -- "C:\WINDOWS\system32\cmd.exe" "/c" "dir"
for me next time:
note the quotes of all all arguments, I did that because I didn't appreciate what the -- was doing so may not be totally necessary but worked
https://unix.stackexchange.com/questions/11376/what-does-double-dash-mean
I'm having trouble getting powershell commands working
e.g.
Code:
oot@pve:~# qm guest exec 108 -- "C:\WINDOWS\system32\cmd.exe" "/c" "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-Command" "dir"
VM 108 qmp command 'guest-exec-status' failed - got timeout
root@pve:~# qm guest exec 108 -- "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "-Command" "dir"
VM 108 qmp command 'guest-exec-status' failed - got timeout
root@pve:~# qm guest exec 108 -- C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command dir
Agent error: Guest agent command failed, error was 'Failed to execute child process (No such file or directory)'
Powershell -Command dir works from the guest machine
Thanks in advance
EDITS: rewrote question after solving original cmd.exe problem
I've managed to cmd working
e.g.
qm guest exec 108 -- "C:\WINDOWS\system32\cmd.exe" "/c" "dir"
for me next time:
note the quotes of all all arguments, I did that because I didn't appreciate what the -- was doing so may not be totally necessary but worked
https://unix.stackexchange.com/questions/11376/what-does-double-dash-mean
Last edited: