Error 0x80005000 and DirectoryServices April 17, 2023 by Tarik I had the same again and again and nothing seemed to help. Changing the path from ldap:// to LDAP:// did the trick.