Skip to content

Auto create computername

Featured Replies

Hi Guys,

 

I'm trying my best to find a solution for this but I haven't found one yet (or i'm just not looking hard enough). My question is simple, i hope the solution is simple to haha

 

The complete TS is automated, it activates windows and so on except for the computer name. We want to have it like this

 

DEPT-01 and next will be DEPT-02 and so on. DEPT is just a sort code for the departement, for example finance departement would be something like FIN-01 and next will be FIN-02 and so on.

 

How can i automate this? Can someone help me out?

Hi, depending on which tool you are using, this may be an example which will help you get further:

http://www.deploymentresearch.com/Research/tabid/62/EntryId/103/Generate-computer-names-in-MDT-2012-2013-based-on-prefix-and-a-sequence-number.aspx

 

It was already possible to store computernames in a database with MDT, just as it is with SCCM. But this blogpost explains how to achieve hostnames that are automatically followed-up by the previous/last given hostname.

 

Cheers!

  • Author

@anyweb: Im using sccm 2012r2 with MDT 2013 integration

@loewie1984: will check the link you posted. Not at my workstation now

  • Author

Does it have to be in a mdt task? Can't we just do a task sequence variable after applying the image? The variable would be something like, instead of DEPT-%serialnumber% something like %incrementnumber%

  • Author

@anyweb. Thanks for the fast replies and support. I will check it out

 

@peter. Thanks man.

  • 5 weeks later...
  • Author

I'm sorry for the late reply was very busy with the implementation from test to production. I managed to figure this out. I have this powershell script that sets the OSDComputerName, but only for new computers. The others I just migrate and preserve the name. Sometimes we use the easy way if we do it only for 1 or 2 computers, by just deploying it to unknown computers as described by you.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.