Skip to content

Instantly share code, notes, and snippets.

@HarmJ0y
Created September 5, 2017 02:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HarmJ0y/ab7f72748b2d4c62786ba622a80a5b18 to your computer and use it in GitHub Desktop.
Save HarmJ0y/ab7f72748b2d4c62786ba622a80a5b18 to your computer and use it in GitHub Desktop.
LastOriginatingDsaDN.ps1
$User = Get-DomainGroupMemberDeleted | Select -First 1
Get-DomainObject -LDAPFilter "(serverreference=$($User.LastOriginatingDsaDN))" | %{
Get-DomainObject $_."msdfsr-computerreference"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment