Nu skriver du jo ikke meget om dit setup...
http://support.microsoft.com/kb/324433Så var der lige en anden gut der havde problemet...
http://gsexdev.blogspot.com/2006/04/removing-disabled-users-from.htmldet som er at bemærke er det her...
LDAP://CN=1155/TC CR 1709 (10 x5504),OU=Conf. Rooms,OU=Resources,OU=Corporate Ma
naged,OU=Southeast Managed,OU=United States,DC=na,DC=mirant,DC=net
C:\temp\disabusersATLNADC03.vbs(59, 3) (null): 0x80005000
det var den account det ikke fungerede ved...
Thanks for posting that information i was able to reproduce the error your having with this. The problem is occuring because of the / character in the Common Name. In ADSI the / character is a special character (actually the only special character there is) which seperates different elements eg server name from DN. So what you need to do to fix the is escape the / with a \ eg \/. What I've done is update the download for this post with some code that does the escape if any / exist in the DN so hopefully this should fix the issue it seemed to work okay for me. The three lines i updated where
set objuser = getobject("
LDAP://" & replace(rs1.fields("distinguishedName"),"/","\/"))
set objgroup = getobject("
LDAP://" & replace(objChildRS.fields("USGRPDN"),"/","\/"))
Set objUser = getobject("
LDAP://" & replace(objChildRS.fields("USDN"),"/","\/"))
Again thanks for the feedback hopefully this will help out other people that might have the same issue.
Roman i suspect you may be having the same issue so try to download the script again from the link in the post and give it another try. With the diag code basically where you needed to insert that diag code was to replace line 56 with those 3 lines of code.
If this still doesn't work you could try putting in a on error resume next at the top of the script and see what result you get.
Det var løsningen....
Nu ved jeg ikke om det heller ikke gælder for dit tilfælde...
Men nu har du da lidt at kigge på...