Home » KBArticles » Script Error: 0x80005000, Code: 80005000, Source: (null)

Script Error: 0x80005000, Code: 80005000, Source: (null)

Thjis was a script that was accessing AD to export a list of users
Some user had the “/” character in the name – the following addition fixed the script to run correctly

For Each strMemberDN in objGroup.Member
strMemberDN = Replace(strMemberDN, “/”, “/”)
Set objMember = GetObject(“LDAP://” & strMemberDN)
Wscript.Echo objMember.cn
Next

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.