Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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