0

Im new to serverfault and my english is not the best...

So, I want to let W10 Setup create an (admin-) user, using this format:

"Name_of_Hardware_Vendor"-User e.g. "DELL-User"

Two questions here: is it possible to use WMIC commands during Setup, like this: WMIC csproduct get Vendor

and how can I manage to get the result from the above query to the autounattend file and section?

thx for your help and best regards

Peter

1 Answers1

0

Easy way would be to use a different unattend file based on vendor. Might depend on how your deploying this. I believe you can use WMIC in the WinPE environment like so: https://stackoverflow.com/questions/35617451/how-can-i-use-wmic-in-a-windows-pe-script

So you might be able to create a script to grab vendor and then write to the unattend file.

To query for Vendor with WMIC its just: wmic csproduct get vendor

colbyt
  • 204
  • 1
  • 4
  • 13