Share via


How to Use PowerShell to Troubleshoot FIM Query Issues

FIM ScriptBox Item

Summary

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

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

 

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