I'm trying to open/read AD Deleted object container using "LDAP://<WKGUID=..." but it fails...
I have to use VB6 (not VB.Net or C#).
Can someone help me?
Here is the failing code:
thank you in advance!
Tomeczek
I have to use VB6 (not VB.Net or C#).
Can someone help me?
Here is the failing code:
Code:
Const GUID_DELETED_OBJECTS_CONTAINER_W = "18E2EA80684F11D2B9AA00C04F79F805"
Set oRootDSE = GetObject("LDAP://rootDSE")
sFQDN = oRootDSE.Get("defaultNamingContext")
sDelObjCont = "LDAP://<WKGUID=" & GUID_DELETED_OBJECTS_CONTAINER_W & "," & sFQDN & ">"
Set oDelObjCont = GetObject(sDelObjCont)
'^^^___ fails here:
' Automation error
' There is no such object on the server
thank you in advance!
Tomeczek