Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3902
  • Last Modified:

Unattend XML, computer name = serial #?

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
Metaltree
Asked:
Metaltree
  • 2
  • 2
2 Solutions
 
KCTSCommented:
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
 
MetaltreeAuthor Commented:
Is there a way for the unattend to call a powershell script? if so, I have a script that does it
0
 
Joe Winograd, EE MVE 2015&2016DeveloperCommented:
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
 
MetaltreeAuthor Commented:
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
 
Joe Winograd, EE MVE 2015&2016DeveloperCommented:
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

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.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now