GM
2007-10-12 07:31:49 UTC
The story:
Topdomain : windows 2003
Subdomains : windows 2000 (14), windows 2003(1)
1 win2000 domain with only 1 domaincontroller crashed, active directory
restore was too old, but restored anyway (>60 days)
Problem : lingering objects only exists on 24 (read-only) global catalog
servers.
There is no writable server where these objects anymore.
On win2003 I can remove the objects temporarely with repadmin
/removelingeringobjects (until replication occurs, then they are back)
I created a script as described in : http://support.microsoft.com/kb/314282
Script gets error -2147016672 on all servers (because they are all
read-only)
I tried deleting the object using vbscript (but this does not work)
dim ouser
set ouser = getobject("GC://hermes:3268/CN=name
name\0ACNF:7899398a-5697-472f-8db8-0703926c5c3a,OU=some
OU,DC=subdomain,DC=domain,DC=net")
ouser.DeleteObject(0)
I tried creating a new user on the subdomain and then renaming it to "name
name\0ACNF:7899398a-5697-472f-8db8-0703926c5c3a" using vbscript, but this
does not work (can't use the special character \0A)
I upgraded the original crashed domain to win2003 too see if it would make
any difference, but problem remains.
Maybe there is a way to rebuild all GC's from scratch all at once?
Repadmin /removelingeringobjects can delete objects on read-only global
catalogs (but not on win2000)
If I know which api it uses and if this api exists on win2000, then I can
try to create a script to delete them all at once on all GC's.
Ideas are welcome.
Topdomain : windows 2003
Subdomains : windows 2000 (14), windows 2003(1)
1 win2000 domain with only 1 domaincontroller crashed, active directory
restore was too old, but restored anyway (>60 days)
Problem : lingering objects only exists on 24 (read-only) global catalog
servers.
There is no writable server where these objects anymore.
On win2003 I can remove the objects temporarely with repadmin
/removelingeringobjects (until replication occurs, then they are back)
I created a script as described in : http://support.microsoft.com/kb/314282
Script gets error -2147016672 on all servers (because they are all
read-only)
I tried deleting the object using vbscript (but this does not work)
dim ouser
set ouser = getobject("GC://hermes:3268/CN=name
name\0ACNF:7899398a-5697-472f-8db8-0703926c5c3a,OU=some
OU,DC=subdomain,DC=domain,DC=net")
ouser.DeleteObject(0)
I tried creating a new user on the subdomain and then renaming it to "name
name\0ACNF:7899398a-5697-472f-8db8-0703926c5c3a" using vbscript, but this
does not work (can't use the special character \0A)
I upgraded the original crashed domain to win2003 too see if it would make
any difference, but problem remains.
Maybe there is a way to rebuild all GC's from scratch all at once?
Repadmin /removelingeringobjects can delete objects on read-only global
catalogs (but not on win2000)
If I know which api it uses and if this api exists on win2000, then I can
try to create a script to delete them all at once on all GC's.
Ideas are welcome.