FIM ScriptBox Item


Troubleshooting FIM Query issues can be difficult because of the large number of items output to trace when FIM tracing is turned up.  As easy way to filter them out is to use the Get-EventLog cmdlet with a Where-Object clause to dig out the items where the Message starts with 'Enumerate'.
This could also be done with the Event Log Viewer and filters, but I find it faster to use this one-liner to quickly find the issue.

Script Code

### Get 'Enumerate' Messages from the FIM Event Log
Get-eventlog -LogName 'Forefront Identity Manager' -Source Microsoft.ResourceManagement | Where-Object {$_.Message -like 'Enumerate*'}


note Note
To provide feedback about this article, create a post on the FIM TechNet Forum.
For more FIM related Windows PowerShell scripts, see the  FIM ScriptBox


See Also