Export-Fimconfig fails within PowerShell Activity in the portal.

Hi,

A script which is working fine fails within Powershell. Why?

This is the error.

export-fimconfig : The type initializer for 'Microsoft.ResourceManagement.WebSer
vices.Client.ResourceManagementClient' threw an exception.

At C:\temp\tncs.ps1:100 char:30
+ $CurObject = export-fimconfig <<<<  -Credential $Credential `
    + CategoryInfo          : NotSpecified: (:) [Export-FIMConfig], TypeInitiali
zationException
    + FullyQualifiedErrorId : System.TypeInitializationException,Microsoft.Resou
rceManagement.Automation.ExportConfig

July 3rd, 2015 4:28am

PowerShell activity is run under FIMService's account credentials. By default FIMService account doesn't exist on FIM Service/Portal so it is unable to query FIM at all.

Free Windows Admin Tool Kit Click here and download it now
July 3rd, 2015 5:10am

In this case FIMService is added to the portal. It's already running Ps scripts from the Poweshell activity. That can't be the problem.
July 3rd, 2015 6:23am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics