Windows 7 wrong username

Discussions about using Windows guests in VirtualBox.
Post Reply
trallallero
Posts: 4
Joined: 19. Feb 2014, 15:14

Windows 7 wrong username

Post by trallallero »

Hi all,

I have a problem with the username passed to a win7 machine via the following command executed from a Mac Lion:

Code: Select all

caffeinate VBoxManage guestcontrol "MyMachine" execute --wait-exit --image "C:/gitroot/cmbuild/CI/guest/createRelease_x86.bat" --username standard --  --name xxx --dest "E:/xxx.5.9.0.0" --tag 5.9.0.0
The user passed is "standard" but when I print the username from the "createRelease_x86.bat", it shows "WIN7DEVVM$".
I tried also with quotes (--username "standard") but with the same result.

VB version is 4.3.10.

What am I doing wrong ?
trallallero
Posts: 4
Joined: 19. Feb 2014, 15:14

Re: Windows 7 wrong username

Post by trallallero »

I solved adding "runas" in the "createRelease_x86.bat" file:

Code: Select all

runas /user:WIN7DEVVM\standard /savecred "cmd.exe /k \"cd C:\gitroot\cmbuild\CI\guest && python createRelease.py %* --platform x86 \""
Post Reply