mburke78 Posted November 4, 2016 Report post Posted November 4, 2016 Hi I am deploying a Windows 7 x64 image and am starting from scratch. I want a way to read the asset tag in the BIOS and use that as the PC name. Also I want to be able to append FGD- or FGL- to the asset tag depending on if it's a Desktop or Laptop. What is the best way of doing this in the task sequence. Any help much appreciated. Quote Share this post Link to post Share on other sites More sharing options...
TrialandError Posted November 4, 2016 Report post Posted November 4, 2016 What CM version are you running and do you have MDT integrated? There are several different options that vary in complexity. Quote Share this post Link to post Share on other sites More sharing options...
mburke78 Posted November 7, 2016 Report post Posted November 7, 2016 Sorry it's 2012 SP1 version 5.0.7804.1300. We do have MDT integrated but am trying to stick to not using it if at all possible but am not sure if that will work as I am right in thinking that MDT adds a lot of functionality on top of the integrated SCCM Task Sequence? Quote Share this post Link to post Share on other sites More sharing options...
mburke78 Posted November 9, 2016 Report post Posted November 9, 2016 Anyone? Quote Share this post Link to post Share on other sites More sharing options...
YPCC Posted November 17, 2016 Report post Posted November 17, 2016 We use sccm with mdt integration inconjunction with a script named "machinenameexit.vbs". Google it for full instructions on how it works. You could also just add a variable for computername (i think its OSDComputerName or something) and the value would be "FGD-%serialnumber%". I remember doing something along those lines in my test lab. 1 Quote Share this post Link to post Share on other sites More sharing options...
mburke78 Posted November 18, 2016 Report post Posted November 18, 2016 We use sccm with mdt integration inconjunction with a script named "machinenameexit.vbs". Google it for full instructions on how it works. You could also just add a variable for computername (i think its OSDComputerName or something) and the value would be "FGD-%serialnumber%". I remember doing something along those lines in my test lab. Thanks for the reply. I thought that would be the case that I had to use MDT as well to do some of the trickier parts. I will have a look into your suggestion. Thanks. Quote Share this post Link to post Share on other sites More sharing options...
blind3d Posted November 22, 2016 Report post Posted November 22, 2016 Hi there, well I'm not a good script-kid, but we use an OSD script that asks the admin to enter a computername at step X of our TS. The asset tag might be stored somewhere in wmic so that you're able to query it. Sth like wmic bios get serialnumber ? You could echo the output somewhere in a txt or csv file by adding >> X:\output.txt Then use a powershell script that uses the line with the serial number as the computername or a part of the computername if u've more characters to add. I'm sure you can combine both things to a useful script if you're talented in powershell 1 Quote Share this post Link to post Share on other sites More sharing options...
Peter33 Posted November 22, 2016 Report post Posted November 22, 2016 Why not just letting MDT do it's magic. It's pretty simple once you got the hang of it and you don't need much programming skills. Just run a gather step with this customsettings.ini and you got what you want. The stuff under default is just examplary for customizations you can apply. [Settings] Priority=Desktop, Laptop, Server, VM, Default [Default] UserLocale=de-DE UILanguage=en-US KeyboardLocale=(0407:00000407) TimeZoneName=Central Europe Standard Time OSDComputername=#Left("%SerialNumber%",15)# [Desktop] Subsection=Desktop-%IsDesktop% [Laptop] Subsection=Laptop-%IsLaptop% [Server] Subsection=Server-%IsServer% [VM] Subsection=VM-%IsVM% [Desktop-True] OSDComputername=FGD-#Left(Replace("%SerialNumber%"," ",""),11)# [Laptop-True] OSDComputername=FGL-#Left(Replace("%SerialNumber%"," ",""),11)# [Server-True] OSDComputername=FGS-#Left(Replace("%SerialNumber%"," ",""),11)# [VM-True] OSDComputername=FGV-#Left(Replace("%SerialNumber%"," ",""),11)# 1 Quote Share this post Link to post Share on other sites More sharing options...
mburke78 Posted November 24, 2016 Report post Posted November 24, 2016 Cheers all for the replies, it's really appreciated. A lot to go off. I am going to look into integrating MDT into the task sequence. Quote Share this post Link to post Share on other sites More sharing options...