Solved

Unattend XML, computer name = serial #?

Posted on 2014-01-07
5
3,152 Views
Last Modified: 2014-01-09
We are setting up WDS. Is there a way to set it up so that a computer name is automatically set to its serial #? I'm assuming if this is possible it is done using the unattend xml?
0
Comment
Question by:Metaltree
[X]
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
  • 2
  • 2
5 Comments
 
LVL 70

Accepted Solution

by:
KCTS earned 250 total points
ID: 39763612
You can give the computer a random name but I know of no way of reading the serial no from the BIOS - its not supported
0
 
LVL 5

Author Comment

by:Metaltree
ID: 39763625
Is there a way for the unattend to call a powershell script? if so, I have a script that does it
0
 
LVL 54

Expert Comment

by:Joe Winograd, EE MVE 2015&2016
ID: 39763650
I was on a thread recently where another expert, aadih, recommended these command lines for obtaining the serial number:

c:\windows\system32\wbem\wmic.exe bios get serialnumber

c:\windows\system32\wbem\wmic.exe csproduct get identifyingnumber

I tested both and they worked fine on my computer. Another expert, mnkhawaja, recommended this PowerShell command:

gwmi win32_bios

I tested it and it worked, too, although it returned four other fields in addition to the serial number. Regards, Joe
0
 
LVL 5

Author Comment

by:Metaltree
ID: 39763656
yes I have a way to get the serial # but the question is how can I apply it the computer name via the image install process - KCTS says it is not possible
0
 
LVL 54

Assisted Solution

by:Joe Winograd, EE MVE 2015&2016
Joe Winograd, EE MVE 2015&2016 earned 250 total points
ID: 39763687
Ah, got it! You may want to try Windows Automated Installation Kit (WAIK) for your deployment. It may be downloaded here:
http://www.microsoft.com/en-us/download/details.aspx?id=5753

Then take a look at this thread:
http://social.technet.microsoft.com/Forums/windows/en-US/f8d9014b-643a-4cfb-953a-81bbb4c444d3/computername-serial-number-waik?forum=w7itproinstall

Regards, Joe
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Active Directory security has been a hot topic of late, and for good reason. With 90% of the world’s organization using this system to manage access to all parts of their IT infrastructure, knowing how to protect against threats and keep vulnerabil…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

724 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