cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Hamilton <s...@seanhamilton.co.uk>
Subject Re: Renaming Windows Computername from new Template Instances
Date Thu, 17 Jan 2013 14:47:25 GMT
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 <scr512@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.sheather@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:
> > kris@cloudcentral.com.au
> > LinkedIn:   | Skype: kristoffer.sheather | Twitter:
> > http://twitter.com/kristofferjon
> >
> > ----------------------------------------
> >  From: "Jim L." <jiml@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.
> >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message