none
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: https://technet.microsoft.com/en-us/library/jj590313(v=ws.10).aspx 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.


    Thanks,
    Brian

    Consulting | Blog | AD Book

    Friday, June 2, 2017 1:33 PM
    Moderator
  • 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.
    Import-MIISConfiguration

    https://docs.microsoft.com/en-us/powershell/identitymanager/microsoft.directoryservices.metadirectoryservices.config/vlatest/import-miisserverconfig

    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


    Peter Stapf - ExpertCircle GmbH - My blog: JustIDM.wordpress.com

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

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

    https://github.com/SharePoint/PnP-Tools/blob/master/Solutions/UserProfile.MIMSync/SharePointSync.psm1

    Maybe it helps you to modify it for your needs.

    Henry

    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\QuickStartPackage.zip

    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:

    Add-MIISADMARunProfileStep
    Import-MIISServerConfig   
    Set-MIISADMAConfiguration 
    Set-MIISECMA2Configuration
    Set-MIISExtMAConfiguration
    Set-MIISFIMMAConfiguration
    Set-ProvisioningRulesExtension

    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