1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Run Command Before Sysprep

Discussion in 'Windows XP' started by kiomega, 2009/09/27.

  1. 2009/09/27
    kiomega

    kiomega Inactive Thread Starter

    Joined:
    2007/07/09
    Messages:
    44
    Likes Received:
    0
    Hi All,
    I want to run a batch file before Mini setup starts. The purpose of this is to inject the computer name into the sysprep.inf file.

    Does anyone know how to specify a command to run before mini setup starts?

    Thanks.
     
  2. 2009/09/28
    mattman

    mattman Inactive Alumni

    Joined:
    2002/06/10
    Messages:
    8,198
    Likes Received:
    63
    I'm only a novice in this area, but this gave me some insight
    http://social.technet.microsoft.com...t/thread/2d03e17d-c2ea-4d19-bf32-7db2e9975251
    That is only to prompt for a computername (and it doesn't seem like an easy or recommended fix :rolleyes:).

    Changing the computername involves a restart, which may stop further automation of the process.

    Do you use the Setup Manager Tool? From the few times I've used it, I think you can add a script(s).

    It probably has variables, like if you are automating addition to the domain, where they say it needs to be removed, the name changed, then re-added.

    I would look at that <computername><computername> section, but then again, maybe I wouldn't, for the sake of avoiding any bugs in the resulting machine.

    Everything seems to be during or after when Sysprep runs, not before.

    If you are stuck, search or ask at the TechNet site/forums (we generally focus on end-user questions).

    Matt
     

  3. to hide this advert.

  4. 2009/09/28
    kiomega

    kiomega Inactive Thread Starter

    Joined:
    2007/07/09
    Messages:
    44
    Likes Received:
    0
    Yeah it needs to run before mini setup starts. It is a program which reads the mac address of the computer and then compares it to a data file, and then the matching name is injected into the sysprep.inf file. When Mini setup runs it renames the computer with the correct name and then joins it to the domain.

    If anyone else has a solution or an alternative I would be very appreciative. Thanks mattman for your response.

    Michael
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.