FIM ScriptBox Item

Summary

Your FIM service and the FIM synchronization service should be on the same patch level.
The objective of this script is to display the installed versions for both components.



Script Code

001
002
003
004
005
006
007
008
009
010
011
012
Set-Variable -Name ComputerName -Value "."
Set-Variable -Name ProgNames    -Value "Forefront Identity Manager Synchronization Service' Or Name='Forefront Identity Manager Service and Portal"

Write-Host "Requesting data - please wait..."
$lstPrograms = @(get-wmiobject -Class 'Win32_Product'`
                               -Computer "."`
   -Filter "Name='$ProgNames'") 

Clear-Host
If($lstPrograms.count -eq 0) {Write-Host "Programs not found"}
Else {$lstPrograms | Format-List -property "Name", "Version"}

 

 

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

 



See Also