Hi Jim,

I've commented on an issue like this one before, I use a vbscript that
queries the router to get the name and then changes the Windows name to
this. This vbscript is run during the sysprep imaging:

I use a combination of vbs scripts, cmd and curl. Essentially the script
runs:

ipconfig /all | findstr /C:""DHCP Server"" which gives me the IP address of
the VR in my environment (this will change for each region so can't be
hardcoded). I then use some regular expressions to strip out that IP
address.

A curl to http://IPADDRESS/latest/local-hostname will give you the name
that the machine is meant to have. Then all you need to do is run:

netdom renamecomputer localhost /newname:"& newName &" /Force /reboot 30


Hope this helps


On 17 January 2013 02:15, Jason Davis <scr...@gmail.com> wrote:

> FWIW this is fairly well documented in the admin guide or at least it was
> in 2.x-3.x of CS.
> On Jan 16, 2013 6:46 PM, "Kristoffer Sheather - Cloud Central" <
> kristoffer.sheat...@cloudcentral.com.au> wrote:
>
> > Hi Jim,
> >
> > This will likely be a Microsoft Sysprep task - look there for answers.
> >
> > Regards,
> >
> > Kristoffer Sheather
> > Cloud Central
> > Scale Your Data Center In The Cloud
> > Phone: 1300 144 007 | Mobile: +61 414 573 130 | Email:
> > k...@cloudcentral.com.au
> > LinkedIn:   | Skype: kristoffer.sheather | Twitter:
> > http://twitter.com/kristofferjon
> >
> > ----------------------------------------
> >  From: "Jim L." <j...@pobox.com>
> > Sent: Thursday, January 17, 2013 11:09 AM
> > To: cloudstack-users@incubator.apache.org
> > Subject: Renaming Windows Computername from new Template Instances
> >
> > Hi,
> >
> > I'm trying to figure out how to get Cloudstack 3.0.2 (or VMWare, my
> > compute host) to automatically change the computername of a new
> > Windows guest VM created from a template.  It looks like the SID
> > changes, but the computername remains the same.  Anyone have a
> > solution for this problem?
> >
> > Thanks - Jim L.
> >
> >
>

Reply via email to