Brian Nielsen
2006-02-21 12:47:29 UTC
Hi
I'm having a Visual Basic 6 program that creates a group on 1 site in an
Active Directory domain (Win2k3).
I want this group to be replicated immediately to the other sites.
Therefore I'm using the repadmin command through the VB program too.
But to use the "repadmin /replsingleobj" I must provide the DC object GUID
of the source.
The problem is that I cannot find the correct GUID to use.
When writing "repadmin /showrepl" I can see the guid to find, so now I just
need to find the same guid using LDAP.
I have tried retrieving the ADSI object for the local Domain Controller, but
the GUID retrieved by IADS.Guid is not equal to the one found by the repadmin
tool.
Can someone tell me, what directory object I need to retrieve in order to
find the right object GUID to use in the repadmin command?
Best regards
Brian
I'm having a Visual Basic 6 program that creates a group on 1 site in an
Active Directory domain (Win2k3).
I want this group to be replicated immediately to the other sites.
Therefore I'm using the repadmin command through the VB program too.
But to use the "repadmin /replsingleobj" I must provide the DC object GUID
of the source.
The problem is that I cannot find the correct GUID to use.
When writing "repadmin /showrepl" I can see the guid to find, so now I just
need to find the same guid using LDAP.
I have tried retrieving the ADSI object for the local Domain Controller, but
the GUID retrieved by IADS.Guid is not equal to the one found by the repadmin
tool.
Can someone tell me, what directory object I need to retrieve in order to
find the right object GUID to use in the repadmin command?
Best regards
Brian