Apply user mapping in powershell script

Hi,

Just want to ask help coz we have created a user mapping in metalogix content matrix UI and we wanted this to be generated in powershell script or either applied using transformation. Is it possible we apply user mapping in powershell job run? Please advise. Thanks,

Regards,

Bryan

Parents Reply
  • Hi Wes,

    We just wanted to know how do we know if its now included on the powershell script generated? Any identifier or command we should look at in the script?

    And another thing was, since we know that UserMapping.mls is the file containing the user mapping config, we would like to understand how this was loaded/consumed when we run on powershell + Metalogix. Please advise. Thanks. 

    Regards,

    Bryan

Children
  • Helo Bryan,

    In the Generated Powershell Script it is added in there under below section.

    # Set default resolvers
    Set-MetalogixDefaultResolverSetting -Name "NodeLocation" -Value "Metalogix.Explorer.PersistentConnectionsResolver, Metalogix.Explorer, Version=9.1.0.1, Culture=neutral, PublicKeyToken=3b240fac3e39fc03"


    Set-MetalogixDefaultResolverSetting -Name "ResourceTableResourceTableLink" -Value "Metalogix.ResourceFileTableResolver, Metalogix.Core, Version=9.1.0.1, Culture=neutral, PublicKeyToken=3b240fac3e39fc03"


    Set-MetalogixDefaultResolverSetting -Name "DataResolverDataRepositoryLink" -Value "Metalogix.Client.ClientDataRepositoryResolver, Metalogix.Client, Version=9.1.0.1, Culture=neutral, PublicKeyToken=3b240fac3e39fc03"

    # Load configuration settings
    Load-MetalogixConfigurationVariableSettings -FilePath "C:\Users\XXXXX\AppData\Roaming\Metalogix\UserSettings.xml" -Scope UserSpecific
    Load-MetalogixConfigurationVariableSettings -FilePath "C:\Users\XXXX\AppData\Roaming\Metalogix\Content Matrix Console - SharePoint Edition\ApplicationSettings.xml" -Scope ApplicationAndUserSpecific
    Load-MetalogixConfigurationVariableSettings -FilePath "C:\ProgramData\Metalogix\EnvironmentSettings.xml" -Scope EnvironmentSpecific

    So when our cmdlets are run it knows automatically how to pick it up.

    Best Regards

    Wes Samson