johnli 0 Report post Posted August 8, 2016 Hi! I'm using a VBS script during OS deployment to set the AD computer description. But results are unpredictable at best (if you use numbers or gaps) Does someone has a suggestion for a good working solution ? script that I was testing : cscript.exe adcompdesc.vbs “%ComputerDescription%” dim Computerdn, strComputerName dim Args Set WshShell = WScript.CreateObject("WScript.Shell") '----Get Computer DN------ Set objADSysInfo = CreateObject("ADSystemInfo") ComputerDN = objADSysInfo.ComputerName strcomputerdn = "LDAP://" & computerDN Set objADSysInfo = Nothing '-----Read commandline--- Set args = WScript.Arguments strdesc = args(0) Addcompdesc strdesc Function addcompdesc(strPCdescription) Set objComputer = GetObject (strComputerDN) objComputer.Put "Description", strPCdescription objComputer.SetInfo end function Quote Share this post Link to post Share on other sites
prologic08 0 Report post Posted August 15, 2016 This might help..I had the same issue. https://www.experts-exchange.com/questions/28673206/SCCM-PXE-populating-fields-in-AD-through-VBS-and-the-Task-sequence.html Quote Share this post Link to post Share on other sites