VMware {code} Community
benny_Boy
Contributor
Contributor

Clone and join a Domain

Hi,

I made my own script to clone the Windows VM, everything works except for join a domain.

With the vmclone.pl script (it uses the VMUtil.pm) it works, but not with my script and I don't find where is the difference between those 2 scripts.

I paste only the lines where it should join the domain :

if(defined($domain)&& $domain ne ""){

+ $cust_identification = CustomizationIdentification->new(+

+ domainAdmin => $username,+

+ domainAdminPassword => $password,+

+ joinDomain => $domain);+

+ $cust_sysprep = CustomizationSysprep->new(+

+ guiUnattended => $cust_gui_unattended,+

+ identification => $cust_identification,+

+ licenseFilePrintData=>$cust_lic_file_print_data,+

+ userData => $cust_user_data,+

+ domainAdmin=> $username,+

+ domainAdminPassword=> $userpassword,+

+ joinDomain=> $domain);+

}

If anybody have any idea, or need the entire script to have one......

Thank you

Regards

Benny.

PS : RESOLVED, it was an XML and XSD mistake. :smileylaugh: :_|

0 Kudos
1 Reply
glim_amd
Contributor
Contributor

Benny,

What did you do to fix the problem?

Thanks,

George

0 Kudos