Kace Agent return nothing
Hi everyone,
I would have the list of virtualbox machine name and UUID into a custom inventory field.
I use :"ShellCommandTextReturn(cmd /c C:\Progra~1\Oracle\VirtualBox\VBoxManage.exe list vms)"
But nothing appear.
If i do the same into cmd with any user ( administrator group or not ) and the result is OK.
I don't know why i've got an empty result.
Is anyone could help me please ?
Many thanks and sorry for my english...
Best regards,
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
SMal.tmcc
8 years ago
Try dropping the ~ and just put "" around the path
ShellCommandTextReturn(cmd /c "C:\Program files (x86)\Oracle\VirtualBox\VBoxManage.exe" list vms)
or try
ShellCommandTextReturn("C:\Program files (x86)\Oracle\VirtualBox\VBoxManage.exe" list vms)
ShellCommandTextReturn(cmd /c "C:\Program files (x86)\Oracle\VirtualBox\VBoxManage.exe" list vms)
or try
ShellCommandTextReturn("C:\Program files (x86)\Oracle\VirtualBox\VBoxManage.exe" list vms)
Comments:
-
I already try this, but there is an error message like : "'C:\Program' n'est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes."
I'm not sure to be able to translate correctly.
Even if i put quotation mark
Thank you - UsrWink 8 years ago