%3CLINGO-SUB%20id%3D%22lingo-sub-972456%22%20slang%3D%22en-US%22%3EWho%20has%20Not%20Registered%20for%20SSPR%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-972456%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSTRONG%3E%20First%20published%20on%20MSDN%20on%20Oct%2008%2C%202014%20%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EThe%20Following%20script%20can%20be%20used%20to%20determine%20who%20has%20not%26nbsp%3BRegistered%20for%20Self%20Service%20Password%20Reset%20for%20Forefront%20Identity%20Manager%202010%20R2%20Special%20thanks%20to%20Markus%20Vilcinskas%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20Following%20script%20was%20inspired%20by%20Mr.%20Vilcinskas%20posted%20script%20%3CA%20href%3D%22http%3A%2F%2Fsocial.technet.microsoft.com%2Fwiki%2Fcontents%2Farticles%2F3616.how-to-use-powershell-to-export-all-users-who-have-registered-for-self-service-password-reset-sspr.aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20http%3A%2F%2Fsocial.technet.microsoft.com%2Fwiki%2Fcontents%2Farticles%2F3616.how-to-use-powershell-to-export-all-users-who-have-registered-for-self-service-password-reset-sspr.aspx%20%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3Eset-variable%20-name%20URI%20-value%20%22%20%3CA%20href%3D%22http%3A%2F%2Flocalhost%3A5725%2Fresourcemanagementservice'%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20http%3A%2F%2Flocalhost%3A5725%2Fresourcemanagementservice'%20%3C%2FA%3E%20%22%20-option%20constant%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Eset-variable%20-name%20CSV%20-value%20%22NotRegistredResetPassUsers.csv%22%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Eclear%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf(%40(Get-PSSnapin%20%7C%20Where-Object%20%7B%24_.Name%20-eq%20%22FIMAutomation%22%7D%20).count%20-eq%200)%20%7BAdd-PSSnapin%20FIMAutomation%7D%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%24WFDFilter%20%3D%20%22%2FWorkflowDefinition%5BDisplayName%3D'Password%20Reset%20AuthN%20Workflow'%5D%22%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%24curObjectWFD%20%3D%20export-fimconfig%20-uri%20%24URI%20%E2%80%93onlyBaseResources%20-customconfig%20(%24WFDFilter)%20-ErrorVariable%20Err%20-ErrorAction%20SilentlyContinue%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%24WFDObjectID%20%3D%20((%24curObjectWFD.ResourceManagementObject.ResourceManagementAttributes%20%7C%20Where-Object%20%7B%24_.AttributeName%20-eq%20%22ObjectID%22%7D).value).split(%22%3A%22)%5B2%5D%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%24Filter%20%3D%20%24Filter%20%3D%20%22%2FPerson%5Bnot(AuthNWFRegistered%20%3D%20'9c3aca59-a85c-437f-bb67-9ce5a70521d7')%5D%22%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%24curObject%20%3D%20export-fimconfig%20-uri%20%24URI%20%E2%80%93onlyBaseResources%20-customconfig%20(%24Filter)%20-ErrorVariable%20Err%20-ErrorAction%20SilentlyContinue%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%5Barray%5D%24users%20%3D%20%24null%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Eforeach(%24Object%20in%20%24curObject)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%7B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%24ResetPass%20%3D%20New-Object%20PSObject%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%24UserDisplayName%20%3D%20((%24Object.ResourceManagementObject.ResourceManagementAttributes%20%7C%20Where-Object%20%7B%24_.AttributeName%20-eq%20%22DisplayName%22%7D).Value)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%24ResetPass%20%7C%20Add-Member%20NoteProperty%20%22DisplayName%22%20%24UserDisplayName%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%24Users%20%2B%3D%20%24ResetPass%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%7D%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%24users%20%7C%20export-csv%20-path%20%24CSV%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%23%23%20%3CA%20href%3D%22http%3A%2F%2Fblogs.msdn.com%2Fconnector_space%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20http%3A%2F%2Fblogs.msdn.com%2Fconnector_space%20%3C%2FA%3E%20%23%23%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fmsdnshared.blob.core.windows.net%2Fmedia%2FMSDNBlogsFS%2Fprod.evol.blogs.msdn.com%2FCommunityServer.Components.PostAttachments%2F00%2F10%2F56%2F34%2F23%2FNotRegistredResetPassUsers.ps1%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20NotRegistredResetPassUsers.ps1%20%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-972456%22%20slang%3D%22en-US%22%3E%3CP%3EFirst%20published%20on%20MSDN%20on%20Oct%2008%2C%202014%20The%20Following%20script%20can%20be%20used%20to%20determine%20who%20has%20not%26nbsp%3BRegistered%20for%20Self%20Service%20Password%20Reset%20for%20Forefront%20Identity%20Manager%202010%20R2%20Special%20thanks%20to%20Markus%20VilcinskasThe%20Following%20script%20was%20inspired%20by%20Mr.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-972456%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAnthonyMarsiglia%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

First published on MSDN on Oct 08, 2014

The Following script can be used to determine who has not Registered for Self Service Password Reset for Forefront Identity Manager 2010 R2 Special thanks to Markus Vilcinskas

 

The Following script was inspired by Mr. Vilcinskas posted script http://social.technet.microsoft.com/wiki/contents/articles/3616.how-to-use-powershell-to-export-all...

 


set-variable -name URI -value " http://localhost:5725/resourcemanagementservice' " -option constant

 

set-variable -name CSV -value "NotRegistredResetPassUsers.csv"

 

clear

 

If(@(Get-PSSnapin | Where-Object {$_.Name -eq "FIMAutomation"} ).count -eq 0) {Add-PSSnapin FIMAutomation}

 

$WFDFilter = "/WorkflowDefinition[DisplayName='Password Reset AuthN Workflow']"

 

$curObjectWFD = export-fimconfig -uri $URI –onlyBaseResources -customconfig ($WFDFilter) -ErrorVariable Err -ErrorAction SilentlyContinue

 

$WFDObjectID = (($curObjectWFD.ResourceManagementObject.ResourceManagementAttributes | Where-Object {$_.AttributeName -eq "ObjectID"}).value).split(":")[2]

 

$Filter = $Filter = "/Person[not(AuthNWFRegistered = '9c3aca59-a85c-437f-bb67-9ce5a70521d7')]"

 

$curObject = export-fimconfig -uri $URI –onlyBaseResources -customconfig ($Filter) -ErrorVariable Err -ErrorAction SilentlyContinue

 

[array]$users = $null

 

foreach($Object in $curObject)

 

{

 

$ResetPass = New-Object PSObject

 

$UserDisplayName = (($Object.ResourceManagementObject.ResourceManagementAttributes | Where-Object {$_.AttributeName -eq "DisplayName"}).Value)

 

$ResetPass | Add-Member NoteProperty "DisplayName" $UserDisplayName

 

$Users += $ResetPass

 

}

 

$users | export-csv -path $CSV

 

 

 

## http://blogs.msdn.com/connector_space ##

 

NotRegistredResetPassUsers.ps1