I'm trying to use a Startup Script deployed to workstations through Group Policy to synchronise the locallly-configured computer description to the description field of the computer account in Active Directory.
It fails with error 0x80070005 (General Access Denied error) but will run manually as domain admin. The business-end of the script is attached.
Any idea what the problem is and how to best get around it?
Set objSysInfo = CreateObject("ADSystemInfo")
strComputerDN = objSysInfo.ComputerName
Set objComputer = GetObject("LDAP://" & strComputerDN)
objComputer.Put "description", strLocalDescription