Link to home
Start Free TrialLog in
Avatar of Metaltree
MetaltreeFlag for United States of America

asked on

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?
ASKER CERTIFIED SOLUTION
Avatar of Brian Pierce
Brian Pierce
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Metaltree

ASKER

Is there a way for the unattend to call a powershell script? if so, I have a script that does it
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
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
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial