Asgard Posted February 13, 2020 Posted February 13, 2020 Do any of you clever souls do anything complex with the naming of devices in SCCM. We want to name our PC's based on the serial number, but if its a laptop , put 'LAP-' at the beginning. Contemplating if something like this would work; just typing it out as we would envisage it WMI Query IF Win32_Battery where batterystatus > 0 then name the device LAP-%serialnumber% if no battery just name the device %serialnumber% obviously that's the really simplistic way of looking at it, but I cant seem to find much answers on the web. Got the idea from here https://www.jeroentielen.nl/run-a-specific-task-sequence-job-only-for-laptops/
Norphy Posted February 13, 2020 Posted February 13, 2020 To be honest, no. For unknown devices, I put an empty collection variable on the Unknown PCs called OSDComputerName. When the PC is built, it then prompts you to enter the name. An alternative is to harvest their MAC addresses and prestage them with a CSV file. I can see the advantage in what you're trying to do though
Asgard Posted February 13, 2020 Author Posted February 13, 2020 Yeah we use OSDComputer name now but was thinking more for complete zero touch but in the interim we might just stick with OSDComputerName. Thanks for the reply
Asgard Posted March 25, 2020 Author Posted March 25, 2020 To be honest, no. For unknown devices, I put an empty collection variable on the Unknown PCs called OSDComputerName. When the PC is built, it then prompts you to enter the name. An alternative is to harvest their MAC addresses and prestage them with a CSV file. I can see the advantage in what you're trying to do though Have cracked it sir If the machine has a battery it puts “lap-“ at the front of the serial number if not it just uses the serial number - I’ll put it up here just in case it’s of use to anyone Expanded on this to check the name and then apply the WiFI profile further down the line in the task sequence Now if I could just get the Modern Driver Managment to recognise non Dell Drivers ha
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now