-
http://smtpport25.wordpress.com/2009/04/22/recovering-deleted-user-ad-account-throught-active-directory-powershell/ We can recover any Active Directory deleted object with in the Tombstone period. Tombstone lifetime can be found in active directory using below steps • Load the ADSIEdit snap-in by...
-
This solution uses ADSI and the .NET Framework to retrieve the name of the user's primary group: $rootDN = ([adsi]"").distinguishedName $user = [adsi]("LDAP://CN=testuser,OU=Test," + $rootDN) $groupID = $user.primaryGroupID $arrSID = $user.objectSid.Value $SID = New-Object System...