Hi All,
i'm having a problem with the export-fimconfig cmdlet that comes with FIMAutomation after a recent hotfix of MIM. the script that i use works perfectly before a certain hotfix, but after i installed one of the latest hotfixes it stopped working with the following error:
here is a code snippet:
set-variable -name URI -value "http://localhost:5725/resourcemanagementservice' " -option constant
if(@(get-pssnapin | where-object {$_.Name -eq "FIMAutomation"} ).count -eq 0) {add-pssnapin FIMAutomation}
$TargetEmployee = $fimwf.TargetId.Guid
$Target = export-fimconfig -uri $URI `
–onlyBaseResources `
-customconfig "/Person[ObjectID='$TargetEmployee']"
if i run this code snippet from Windows PowerShell ISE as an admin or even the FIM service account it works fine, the issue only happens when the powershell script is triggered by a workflow.
i can provide any information needed to anyone who can help.
Thank you in advance,
Majd