There are a number of scripts posted on the interweb for using the OSDComputername variable to set the PC name during OS deployment, but I have not been able to find what I need and my scripting skills are not quite up to the task of writing my own.
Using SCCM 2012 R2 SP1, ADK10 and MDT 2013 Update 2 integration, I need to come up with a script to run in an OSD bare metal task sequence that will: - Identify if the system is physical or virtual. - If physical, auto-generate a workstation's PC name using a 3-character (hardcoded) prefix and the computer's serialnumber/asset tag. - If virtual, auto-generate a viable PC name based on the MAC address. (This is primarily for VMware Workstation, though Client Hyper-V support would be a plus) - Present the calculated PC name in a confirmation window with the ability to manually change the presented name, if desired. Anyone have anything like this? Thanks, David ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

