Skip to content

MDT2013 Automated Computernames

In our organisation we were struggling with people sticking to a set of rules for device names e.g.; LT-BLA-01, BLA-LT-01, LT-BLA01 etc etc…
Somehow this was a hard task and and getting an eye soar with all the different variations.

As an MSP it is hard to have a set name with incremental numbers as we also would like the customer’s name in the device name.
Eventually we threw this aside and decided on using the serial number as device name.

Powershell is used to get the serialnumber and system type (laptop or workstation);

Save the script to the ScriptRoot “\\MDT\DeploymentShare\Scripts”.
In the MDT Task Sequencer, add a task to run a PowerShell Script.

And add the Powershell script location;

Make sure to add at the script somewhere near the end of the sequence steps, we’ve placed it right before the last restart.

 

Published inMDT2013PowerShellWindows Server

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *