tag:blogger.com,1999:blog-16993847154518048.post7670565079231330857..comments2023-08-17T09:57:46.931+02:00Comments on Somewhere in a cloud....: Generate Computer names in MDT 2010/SCCM based on prefix and a sequence number including OU assignmentRune Bakkenhttp://www.blogger.com/profile/00109589528216477991noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-16993847154518048.post-623129706940699982012-01-13T13:14:57.621+01:002012-01-13T13:14:57.621+01:00Hello,
I am trying to so something similar but ou...Hello,<br /><br />I am trying to so something similar but our computer names are generated using a mixture of <br /><br />1. task sequence selected for this computer<br />2. PC model<br />3. suffix is just a 4 digit number entered by the engineer.<br /><br />here is an email I send to someone to assist me but I have had nothing back.<br /><br />I have recently had SCCM 2007 deployed and I have produced my master task sequence <br /><br />I wish to automate 2 parts of the computer naming process of an unknown computer in the task sequence and needed your assistance as to how I would approach this.<br /><br />Here is some background<br /><br />Scenario<br /><br />When I PXE boot a new PC (unknown to SCCM)<br />•I enter the administrator password<br />•I am then presented with the option to select which task sequence I wish to deploy (there are about 10, 1 for each department)<br />•The first 2 parts of the computer name should be then be generated based on the task sequence I select and part of a WMI query that takes park of the hardware model number.<br /><br />The third part is where I am stuck, our PC names are created using 3 fields DepartmentID-PCModel-ASSETTag<br /><br />This is what I what I would like to do for the task sequence to do (I presume this will be a mixture of VBScript, SQL query and a HTA front end for the last part where I enter the asset TAG number)<br /><br />1.The first part of the computer name should be populated based on the task sequence selected eg. If I select the Merchandising Task sequence then the first part of the computer name should populate to MER-<br />2.The second part of the computer name should populate using a WMI query that gets the model number so for example for a HP Elite 8200 CM, the query should pick up 8200 and then the 2nd part of the computer name should be populate – so we have IT-8200<br />3.Once the 1st 2 parts of the computer name have been generated, they it should be displayed in the HTA front end allowing me to finish the last part of the computer name detailed in step 4.<br />4. Now the 3rd part is the asset tag – this is just a sticker that we stick on the PC which helps identify it. This can just be entered by the administrator imaging the PC. So once the user enters the 4 digits of the ASSET tag we would have IT-8200-xxxx<br /><br />Reason I wish to do it like this is that it minimises user error and typo’s in the computer name.<br /><br />Do you think this is achievable and could you possibly help creating the script/query/HTA front end to generate the full computer name.<br /><br />At the moment this is what happens with my SCCM task sequence<br /><br />1. I PXE boot a new machine<br />2. I enter the admin password to connect to the network share<br />3. I select the appropriate departmental task sequence<br />4. I am then asked to enter the full computer name for the OSDCOMPUTERNAME task sequence variable<br /><br />Thanks<br />NazNazhttps://www.blogger.com/profile/09204955148907797425noreply@blogger.com