Skip to main content
New-MappingSettings

Override pre-existing mapping settings with PowerShell

Updated over a week ago

Command

New-MappingSettings

Description

The command to override mapping settings that were previously saved for your source and destination.

Example

Set new mappings in a variable

$mappingSettings = New-MappingSettings

Considerations

This command has no parameters. It is used with other mapping commands to create new mappings in your script without worrying about mappings previously saved in ShareGate Migrate for your source and destination.

To find an example of the command in a complete script, see Use mappings in PowerShell.

PowerShell allows you to use multiple mapping files for migrating your objects or content. Use this command to add mapping settings to an existing mapping settings object. For more details, see Use multiple mapping files at once.

Did this answer your question?