Page 1 of 1

Windows 7 wrong username

Posted: 26. Jun 2014, 11:13
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 ?

Re: Windows 7 wrong username

Posted: 26. Jun 2014, 12:52
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 \""