Windows Vista Forums

Sysprep Image and automating Computer Name
  1. #1


    Gareth Jefferies Guest

    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

  2. #2


    Joe Morris Guest

    Re: Sysprep Image and automating Computer Name

    "Gareth Jefferies" wrote:

    > 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...)


    > 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

  3. #3


    Grey Guest

    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

    > 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

Sysprep Image and automating Computer Name problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sysprep - Creating a Build-to-Order (BTO) Windows Image Brian Drab Vista installation & setup 1 10 Feb 2009
Sysprep'd Image Hangs when Deploying on Certain Hardware Aaron K Vista General 9 22 Aug 2007
Sysprep'd Image Hangs when Deploying on Certain Hardware Aaron K Vista installation & setup 9 22 Aug 2007
How to do sysprep to make a image for my users and maintain the count on KMS server ? Motor Wu Vista installation & setup 5 20 Mar 2007
How to do sysprep to make a image for my users and maintain the count on KMS server ? Motor Wu Vista General 2 15 Mar 2007