Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Microsoft Identity Manager PowerShell Management Agent Schema Script to check to see if users AD Passwords have been pwned. Supporting blog post is located here https://blog.darrenjrobinson.com/identifying-active-directory-users-with-pwned-passwords-using-microsoftforefront-identity-manager/
$obj = New-Object -Type PSCustomObject
$obj | Add-Member -Type NoteProperty -Name "Anchor-objectGUID|String" -Value "08572d0b-e5e6-4b9b-bdf1-576dd90aa1d9"
$obj | Add-Member -Type NoteProperty -Name "objectClass|String" -Value "user"
$obj | Add-Member -Type NoteProperty -Name "givenName|String" -Value "Bob"
$obj | Add-Member -Type NoteProperty -Name "displayName|String" -Value "Bob Smith"
$obj | Add-Member -Type NoteProperty -Name "mail|String" -Value "bsmith@customer.com.au"
$obj | Add-Member -Type NoteProperty -Name "sn|String" -Value "Smith"
$obj | Add-Member -Type NoteProperty -Name "pwdLastSet|string" -Value "131279669124972207"
$obj | Add-Member -Type NoteProperty -Name "lastLogon|integer" -Value 131465297084312051
$obj | Add-Member -Type NoteProperty -Name "logonCount|integer" -Value 115
$obj | Add-Member -Type NoteProperty -Name "adminCount|integer" -Value 1
$obj | Add-Member -Type NoteProperty -Name "sAMAccountName|string" -Value "bsmith"
$obj | Add-Member -Type NoteProperty -Name "userPrincipalName|string" -Value "bsmith@customer.com.au"
$obj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.