MDT 2010 - Setting the Computer Description in AD without a
Posted by: johan Quite a few people have asked my how to retrieve the computer description value from the MDT database or the deployment wizard,and then store it in Active Directory as well as on the local machine,system properties. So I decided it was time for a new posting... This sample does not require a webservice,however,if you don't mind using a webservice,you can always use Maik Kosters execellent guide: Setting the Computer Description in Active Directory during MDT Deployments This article describes the following processes 1. Get the Computer Description value. Download the sample scripts Step 1 - Get the Computer Description value. Built-in to MDT you have two options for this,either by enabling the description feature in the deployment wizard or by storing the value in the MDT database Option 1 - Enabling the computer description feature in the deployment wizard
? Option 2 - Setting the value in the MDT database If you have set the value in the MDT database,you need to either query the ComputerIdentity table (because the built-in view doesnt list the description value),or update the view. In this example I query the ComputerIdentity table directly. You need to add a custom property into customsettings.ini for the description property,and I selected to also set the ComputerDescription value so that we are consistent with using the wizard which sets that value. Another option is to take care of that in the scripts,checking for either Description or ComputerDescription values,but it's a bit easier simply to setComputerDescription to be the Description value that we get from the database.Configure your customsettings.ini with the following: [Settings] [Default] [CIdentity] Step 2 - Store the Description value on the computer object in Active Directory
Step 3 - Store the Description value on the system properties of the local computer
/ Johan (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |