[solved]running scripts on windows vm

Discussions about using Windows guests in VirtualBox.
Post Reply
Holger_S
Posts: 6
Joined: 28. Jan 2014, 13:25

[solved]running scripts on windows vm

Post by Holger_S »

Hello,

i'm new here and hope i can find some help !

Currently i try to run via the following example command a batch file on the windows vm.

... vboxmanage guestcontrol win7 exec --image C:\<file> --user "x" --password "y" --wait-exit --wait-stdout --wait-stderr "parameter1"

the bat file is very simple and just mount a path, copies a file to a folder and msiexec a installation .msi
I tested the batch on the vm and it works fine, all things running normaly. But when i try to trigger the file from "outside" with the vboxmanage, it doesn't work correctly.
Mounting and copy is ok, but the installation is failure.
Does someone have any idea, why it's not working correctly ? Is it because of rights or missing privileges.

Thanks for any help or solutions.
Holger
Last edited by Holger_S on 29. Jan 2014, 12:41, edited 1 time in total.
Holger_S
Posts: 6
Joined: 28. Jan 2014, 13:25

Re: running scripts on windows vm

Post by Holger_S »

Solved it by myself, anyway thanks for reading :)

Solution, run the msiexec in the bat as admin with msiexec /a "path" ....
Holger_S
Posts: 6
Joined: 28. Jan 2014, 13:25

Re: running scripts on windows vm

Post by Holger_S »

Okay, problem not solved...

Is it possible to install from outside via msiexec on a vm ?
I got often an error of invalid or missing rights, no matter if i run the console as admin.

Any help would be great !
Thanks a lot
Holger_S
Posts: 6
Joined: 28. Jan 2014, 13:25

Re: running scripts on windows vm

Post by Holger_S »

As i talk to my self very often...

now i found the solution.
It's because of the UAC, you have to lower it in the VM, then it's no problem to install.

Sorry for spam here, but now i'm finaly happy.

Thanks to everyone who have read this or may have helped me out.
Post Reply