"OLE error 80005000 (#0)" error from AD.X or Exchange.X command
Top  Previous  Next


"OLE error 80005000 (#0)" means that there is a syntax error in the ContainerPath / ADpath parameter.

(Why the cryptic error message? AdmWin displays the internal Windows error message. Hopefully Windows will provide better error messages soon.)

Example:

AD.Account.Create dc=com/dc=acme/dc=d2/ou=,%AccountName%,%AccountName%,%Password%

...will return an "OLE error 80005000 (#0)" error - the last ou parameter is not defined.

AD.Account.Create dc=/dc=acme/dc=d2/ou=MyOU,%AccountName%,%AccountName%,%Password%

..will return an "OLE error 80005000 (#0)" error - the first dc parameter is not defined.

AD.Account.SetProperty dc=/dc=acme/dc=d2/ou=MyOU/ cn=acc044,CommonName,acc844

..will return an "OLE error 80005000" - there should not be a space between "/" and "cn".

etc.

If you use variables - "%ADOUPath%" etc. Try replacing them with the actual full path to get a clearer view.