Scripting Question

Kace Agent return nothing

11/16/2016 1025 views
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


All Answers

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

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ