I am looking to us Powershell to identify the location of the Deleted objects in Active Directory using .NetFramework. The information seems to be saved in the WellKnowObjects attribute which I can see when I use the following code:
$path = "LDAP://DC=My,DC=Domain"
$root = [System.DirectoryServices.DirectoryEntry]$Path
$root.WellKnownObjects
What I get back from this is:
WellknownObjects : {System.__ComObject, System.__ComObject, System.__ComObject, System.__ComObject...}
This is not the first time I have run into this ComObject discription. How do I get the underlying data associated with this attribute?