Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista installation & setup

Vista - Sysprep Image and automating Computer Name

Reply
 
Old 04-21-2008   #1 (permalink)
Gareth Jefferies


 
 

Sysprep Image and automating Computer Name

Hi,

We would like to deploy a sysprep'd Vista x64 image and we would like the
computer name automatically set, based on the asset number in the BIOS.

Does anyone know how to do this?

I have used a tool called WSName for Windows XP, using the WMI
SMBIOSAssetTag info, but this doesn't work in Vista.

Could Powershell or vbscript be used?

Thanks

Gareth

My System SpecsSystem Spec
Old 04-21-2008   #2 (permalink)
Joe Morris


 
 

Re: Sysprep Image and automating Computer Name

"Gareth Jefferies" wrote:
Quote:

> We would like to deploy a sysprep'd Vista x64 image and we would like the
> computer name automatically set, based on the asset number in the BIOS.
>
> Does anyone know how to do this?
>
> I have used a tool called WSName for Windows XP, using the WMI
> SMBIOSAssetTag info, but this doesn't work in Vista.
I've not seen WSName before, but the author's web page flags it as "not
tested on Vista" and doesn't include Vista support in the section "What's in
the works." How does it fail for you? And perhaps more to the point, are
you running it as administrator, or with normal privileges? (UAC strikes
again...)

Quote:

> Could Powershell or vbscript be used?
You'll probably need to be recovering the string from WMI, so any tool which
can issue a WMI call, manipulate the response, and store it into the
Registry should be OK...as long as you don't let the UAC alligator chomp
down on your fingers. And assuming that Vista doesn't require some
completely new waving-of-hands to change the hostname programmatically.

The asset tag info is stored in the same WMI property in XP and Vista, so
that part of the code won't change.

Joe Morris


My System SpecsSystem Spec
Old 04-23-2008   #3 (permalink)
Grey


 
 

Re: Sysprep Image and automating Computer Name

Be aware - if the machinery you are deploying TO isn't exactly the same as
the machinery where the image was CREATED (eg, every machine exactly the
same), then it wont work.

"Gareth Jefferies" <GarethJefferies@xxxxxx> wrote in
message news:B8847AD8-5575-40A3-9A9E-598AE70DBCD6@xxxxxx
Quote:

> Hi,
>
> We would like to deploy a sysprep'd Vista x64 image and we would like the
> computer name automatically set, based on the asset number in the BIOS.
>
> Does anyone know how to do this?
>
> I have used a tool called WSName for Windows XP, using the WMI
> SMBIOSAssetTag info, but this doesn't work in Vista.
>
> Could Powershell or vbscript be used?
>
> Thanks
>
> Gareth
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Sysprep - Creating a Build-to-Order (BTO) Windows Image Vista installation & setup
Windows Vista problem with local user account after sysprep Image Vista installation & setup
virtual server 2005 - deploying multiple vm's from sysprep image using Differencing Disks? Virtual Server
How to do sysprep to make a image for my users and maintain the count on KMS server ? Vista installation & setup
How to do sysprep to make a image for my users and maintain the count on KMS server ? Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46