question

AliPakzad-0462 avatar image
0 Votes"
AliPakzad-0462 asked NathanShaw-8495 commented

Computer name in MDT like : Prefix-"4digit Increasing number"

Good day, Dear support team,

In MDT, I need to set automatic computer names on devices while they're joined to the domain, like Prefix"4digit increasing number"

In AD, I have an OU named Workstations,

Inside Workstations, I have my computers,

All computer names start with "computer" and a 4 digit number, For example, Computer0001, Computer0002 ...

Now MDT deploys the windows, how can I config it to check the last computer name in that OU and set the next available number to the newly imaged computer?

In WDS, I used Computer %04#% and it was working. but in MDT it's not working.

mem-mdt
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SimonRenMSFT-3639 avatar image
0 Votes"
SimonRenMSFT-3639 answered SimonRenMSFT-3639 edited

Hi,

Thanks for posting in Microsoft Q&A forum.

Per my experience, we could try to use the MDT database to generate computer names based on prefix and a sequence number. For more detailed information, please refer to:

Generate computer names in MDT 2012/2013 based on prefix and a sequence number
Use the MDT database to stage Windows 10 deployment information
Note: The non-Microsoft link is just for your reference.

Best regards,
Simon


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AliPakzad-0462 avatar image
0 Votes"
AliPakzad-0462 answered NathanShaw-8495 commented

Hello @SimonRenMSFT-3639

Thank you for the references.
I made it work after a lot of changes that were not mentioned in both guides.

At least it works now!

Thanks

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

Thank you very much for your feedback and sharing. We're glad that the question is solved now. If you have any questions in future, we warmly welcome you to post in Microsoft Q&A forum again.

Have a nice day!

Best Regards,
Simon

0 Votes 0 ·

Hi, can you share the changes?

0 Votes 0 ·