Skip to main content
All CollectionsMigrateLimitationsPowerShell Limitations
Using ShareGate's PowerShell module with other modules
Using ShareGate's PowerShell module with other modules

Limitations while running scripts with other modules such as PnP PowerShell

Updated over a month ago

ShareGate Migrate has a PowerShell module with a set of cmdlets, functions, parameters, etc.

Details

Using external PowerShell modules alongside the ShareGate Migrate module may cause unexpected behaviors.

While we do our best to help with these cases, ShareGate Migrate does not officially support external PowerShell modules.

It's always best to use the ShareGate Migrate PowerShell module exclusively for your operations.

PnP PowerShell

Though you can expand ShareGate's capabilities with PnP PowerShell's module, running both modules simultaneously can cause problems.

To use PnP cmdlets, we recommend the stepped approach described below:

  1. Import the PnP PowerShell module.

  2. Execute your pre-migration PnP scripts. For example, provisioning site collections.

  3. Disconnect the PnP PowerShell module.

  4. Execute your ShareGate migration scripts.

  5. Disconnect the ShareGate PowerShell module.

  6. Import the PnP PowerShell module.

  7. Run your post-migration PnP scripts.

Did this answer your question?