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

Comments

Please log in to comment

Answers

0
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)
Answered 11/16/2016 by: SMal.tmcc
Red Belt

  • 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
Please log in to comment
Answer this question or Comment on this question for clarity