Sometimes the FIM Sync WMI classes disappear, maybe they're shy, who knows.
When this happens then the functions in this module that rely on WMI will return this error:
Get-WmiObject : Invalid namespace "root/MicrosoftIdentityIntegrationServer"

To resolve this issue, you need to register the WMI DLL again, and recompile the MOF file. The script snippet below shows how to do this.

### Load the FIM Sync PowerShell Module
ipmo .\FimSyncPowerShellModule.psm1

### Go the the FIM Sync Bin Folder
Set-Location (Join-Path (Get-FimSyncPath) Bin)

### Register the FIM Sync WMI DLL
regsvr32 /s mmswmi.dll

### Compile the FIM Sync MOF File
mofcomp mmswmi.mof

### Well, this part just doesn't deserve a comment because the function is perfectly named
Restart-Service FIMSynchronizationService

Last edited Aug 28, 2012 at 4:11 PM by CraigMartin, version 1

Comments

No comments yet.