D8TA Posted August 2, 2011 Share Posted August 2, 2011 I am trying to completely automate a Windows XP installation for re-imaging purposes. I found a tool called mysysprep which says it will read the BIOS and I can extract certain fields from the BIOS and use for my sysprep file. I've tried this several times and it isn't working. I want to take the BIOS asset tag and have it applied to the Computer Name during the sysprep process and then join the AD domain. I can get the AD join stuff to work alright but the Computer Name is my issue. I thought I could use the UIU (Universal Imaging Utility) from Binary Research but even then I can't get the BIOS asset tag to get applied to the Computer Name. Any suggestions from the pros? Link to comment Share on other sites More sharing options...
Tripredacus Posted August 2, 2011 Share Posted August 2, 2011 Sure you can using WMI and the rename method.Rename Method of the Win32_ComputerSystem Class [MSDN] Link to comment Share on other sites More sharing options...
D8TA Posted August 2, 2011 Author Share Posted August 2, 2011 So I can use this method if the machine is already joined to the Domain? I don't see where that reads the BIOS Asset Tag to make that field the Computer Name. Link to comment Share on other sites More sharing options...
Tripredacus Posted August 3, 2011 Share Posted August 3, 2011 That example grabs the Name object in Win32_ComputerSystem. If you have a system with an Asset tag already on it, you can install the WMI Tools to find out what class and object that data is in. The data might end up being in Win32_Baseboard or Win32_BIOS. You can get WMI Tools here:http://www.microsoft.com/download/en/details.aspx?id=24045 Link to comment Share on other sites More sharing options...
D8TA Posted August 4, 2011 Author Share Posted August 4, 2011 Thanks Tripredacus, so far everything looks good. Link to comment Share on other sites More sharing options...
CoffeeFiend Posted August 4, 2011 Share Posted August 4, 2011 There's a great tool called wsname for this. No need to write WMI code or anything. It'll rename the computer itself and its account in AD, and it can base the name on the asset tag if you want (using $ASSETTAG). It's great stuff It's the best tool for the job IMO.Unfortunately the official host is often down when you need it, so here's an alternate link... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now