anyweb Posted May 11, 2012 Report post Posted May 11, 2012 When you install new computers it would be nice to be able to easily name the computer as part of the deployment, otherwise the new computer could end up with a name like MININT-XRGHJTF unless you import it into Configuration Manager first. You can script around this in your task sequence or use web services or HTA's but the easiest method of all is to set a Collection variable called OSDComputerName. This method does not require any scripting all you need to do is to Enable Unknown Computer support in the Distribution Point PXE tab settings. To prompt the end user to enter a computer name In Configuration Manager 2012 by using the OSDComputerName variable you first need to think about the computers you are aiming this at, and in this case the computers are unknown computers, that is, they are unknown to Configuration Manager. Step 1. add the collection variable Now that we know that they are unknown we need to select the Unknown Computers collection called All Unknown Computers. Right click and choose Properties. select the Collection Variables tab and click on the Yellow star burst button as shown below enter the following variable name when prompted OSDComputerName, remove the checkmark from Do Not Display this value in the Configuration Manager console as in the screenshot below click ok and apply so that it looks like this Step 2. Make sure you have Deployed a task sequence to the Unknown Computers collection Verify that you have deployed your chosen task sequence to the Unknown Computers collection by selecting the task sequence and clicking on the Deployments tab. The deployments listed should include one for the All Unknown Computers collection as shown below. If not, then create a new deployment for the task sequence and choose the All Unknown Computers collection for that deployment. Step 3. PXE boot a new computer PXE boot a new computer. Press F12 when prompted Note: make sure the computer is NOT present in Configuration Manager prior to this, either as a previous computername or as an UNKNOWN object, if it is, highlight it in All Systems and delete it. select your task sequence and click next now you will see a Task Sequence window called Edit Task Sequence Variables double click on OSDComputerName, the following should appear type in a computername click ok and the computername value should be listed to the right of the variable name as shown below click next and the task sequence completes as normal Step 4. Verify that it worked Now that the Task Sequence is complete you can logon to your computer, bring up the computer properties and note the computername is what you entered earlier. the variable is set during the Apply Windows settings step of the task sequence and you can see the collection variable being added in the SMSTS.log file (found in C:\Windows\CCM\Logs) that's it, I told you it was easy ! cheers niall 3 Quote Share this post Link to post Share on other sites More sharing options...
Junu Posted May 11, 2012 Report post Posted May 11, 2012 Wow that's cool. going to try... TY Quote Share this post Link to post Share on other sites More sharing options...
nry Posted May 14, 2012 Report post Posted May 14, 2012 Superb, I was wondering on that one! Quote Share this post Link to post Share on other sites More sharing options...
dani3l Posted June 15, 2012 Report post Posted June 15, 2012 is there a possibility to get the old name from sccm if i want to reinstall a computer? In SCCM 2007 this script works fine http://14rocks.blogspot.de/2011/04/sccm-osd-prompt-for-computer-name.html But in SCCM 2012 i only get name like minint-ABC123... have you an idea? Quote Share this post Link to post Share on other sites More sharing options...
moustafafafa Posted June 17, 2012 Report post Posted June 17, 2012 Unknown Computer Bug in Configuration Manager 2012 Even the RTM When you are using OSDComputerName variable for All Unknown Computers Please Help me Quote Share this post Link to post Share on other sites More sharing options...
Steve Murphy Posted June 20, 2012 Report post Posted June 20, 2012 moustafafafa - Any luck figuring this out? Or any more information about what problems you are having with it? Quote Share this post Link to post Share on other sites More sharing options...
CrapCleaner Posted June 24, 2012 Report post Posted June 24, 2012 Should these tasks (step 2) already be available right after the installation or do you have to create them manually? Quote Share this post Link to post Share on other sites More sharing options...
hans.swolfs Posted June 26, 2012 Report post Posted June 26, 2012 experiencing the same issue as moustafafafa and I find it utterly annoying... I was thinking something went wrong with my sccm install but apparently not. I'm going to google around a bit to check what can be done. Quote Share this post Link to post Share on other sites More sharing options...
hans.swolfs Posted June 26, 2012 Report post Posted June 26, 2012 apparantly we'll have to wait for MS for a fix best solution for now is to delete the unknown entries in sccm... Quote Share this post Link to post Share on other sites More sharing options...
n00blar Posted June 26, 2012 Report post Posted June 26, 2012 Hey guys, I do it a slightly different way, mainly because we like to use the asset number from our DELL computers as the computer name account. Here's the link. Quote Share this post Link to post Share on other sites More sharing options...