Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Deploying WinXP with WDS, Computername=%MACHINENAME%

Posted on 2011-02-14
Medium Priority
Last Modified: 2012-05-11
Hi, I'm trying to deploy a winXP image that I captured previously but im getting stuck in the mini menu when it asks for the computer name.  In the Sysprep.inf file i have the setting Computername=%MACHINENAME% and this doesn't work it says that i can't use special characters.

I'm trying to name the computer the name that was prestaged in AD.  Does anyone know of what to put in the syspre.inf file to make it use the name prestaged in AD??

The process im doing to test if the sysprep.inf is configured correctly is:

1. Run sysprep.exe and select mini setup checkbox
2. Save the sysprep.inf in the C:\Sysprep folder and click reseal
3. Restart Computer to test config

Any ideas?
Question by:Thunder-Cat
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
LVL 11

Expert Comment

ID: 34893760
LVL 11

Accepted Solution

yelbaglf earned 1500 total points
ID: 34893768
I should also note that you can also have it prompt for the computername by using the following:


Notice that I've removed the *, which tells sysprep to autogenerate a name.  Now it will prompt you for one.

But the Cmdlines.txt file is the way to automate all of this.

Author Comment

ID: 34893919

Hey thanks for your reply, cmdlines may not work because they run after the computer has already received a computer name and have been joined to the domain.  Hmm
Fill in the form and get your FREE NFR key NOW!

Veeam® is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

LVL 11

Expert Comment

ID: 34894020
You could always use Cmdlines.txt to change the name and join the domain, by using netdom instead of sysprep for this.
LVL 11

Expert Comment

ID: 34894032
Another option would be to use something like a fog server, which then uses netdom to do this.  It's also a pretty slick open source imaging solution.

Author Comment

ID: 34894072
Ill VBscript it cheers

Author Closing Comment

ID: 34894076

Featured Post

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Step by step guide to Clean and Sort your windows registry! Introduction: Always remember: A Clean registry = Better performance = Save your invaluable time In this article we're going to clear our registry manually! Yes, manually! The e…
It is only natural that we all want our PCs to be in good working order, improved system performance, so that is exactly how programs are advertised to entice. They say things like:            •      PC crashes? Get registry cleaner to repair it!    …
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question