Command Line tool to Import Management Agent from File RRS feed

  • Question

  • Hi,

    Is there a command line tool or powershell script to IMPORT Management Agent in MIM Synchronization?

    In this page: says:

    You can also use the command-line tool, Maexport, to import a management agent from file.

    But in command sintax only show option to Export, not to import.

    I couldn't find powershell script to do this import.

    Any Help?
    Thanks In Advanced

    Kind Regards

    JuanCC Technology Specialist

    Friday, June 2, 2017 1:26 PM

All replies

  • Hi Juan-

    I'm not aware of any tool that can do this for you.


    Consulting | Blog | AD Book

    Friday, June 2, 2017 1:33 PM
  • The only PowerShell I am aware if is completly import the MIIS / MIM configuration, so all MAs and also Schema and all other setting.

    You will find that with add-pssnapin MIIS.MA.Config but did not try that for a long time.

    You can skip MA that you do not want to import but in order for that tool to work you must use export server config instead of export MA config. It also always imports the MV so be aware of that.

    Sadly that AADConnect has such a cmdlet (New-ADSyncConnector) but I think there is no chance to extract that wo work with MIM


    Peter Stapf - ExpertCircle GmbH - My blog:

    Friday, June 2, 2017 4:25 PM
  • Hi

    Craig Martin published a way to import management agents for AD and SharePoint using Powershell.

    Maybe it helps you to modify it for your needs.


    Wednesday, June 7, 2017 11:16 AM
  • I have only tested this with MIM 2016 SP1. You can extract the QuickStart files located in 

    %ProgramFiles%\Microsoft Forefront Identity Manager\2010\Synchronization Service\Tools\

    Open up Powershell with elevated privileges and navigate to the folder containing all the extracted DLLs, scripts and modules and then run

    Import-Module .\Microsoft.DirectoryServices.MetadirectoryServices.Config.dll

    After that run you can see the available commands by running:

    Get-Command -Module Microsoft.DirectoryServices.MetadirectoryServices.Config

    You should see the following commands:


    Use Import-MIISServerConfig to import all management agents in a specific folder by specifying the -Path parameter.

    After that based on the type of management agent you want to modify use the Set-MIISxxxConfiguration to tailor the newly imported Management Agents to a given environment.

    For more info refer to: Microsoft.DirectoryServices.MetadirectoryServices.Config Module

    Wednesday, June 14, 2017 2:31 AM
  • there is a way to import whole FIM Sync config, but I am not aware of any tool that can handle import of individual MA.

    If you found my post helpful, please give it a Helpful vote. If it answered your question, remember to mark it as an Answer.

    Wednesday, June 14, 2017 7:41 AM