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?
Windows Server 2008Windows 7Active Directory

Avatar of undefined
Last Comment
Joe Winograd

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Brian Pierce

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
Metaltree

Is there a way for the unattend to call a powershell script? if so, I have a script that does it
Joe Winograd

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
ASKER
Metaltree

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
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
SOLUTION
Joe Winograd

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question