Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Startup Script to set Description of Computer Account in Active Directory

Avatar of cantoris
cantorisFlag for United Kingdom of Great Britain and Northern Ireland asked on
Windows XPActive DirectoryVB Script
3 Comments1 Solution761 ViewsLast Modified:
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
objComputer.SetInfo