Helpful Tip.
If you run SharePoint 2010/2013 Management Shell and get the following error: “The local farm is not accessible. Cmdlets with FeatureDependencyId are not registered” check out how to fix it here.
SharePoint Migration Powershell Scripts.
Clean-up orphan users.
It is best to remove orphan users as they serve no purpose in a migration. We created the SPOrphans.ps1 script to find all the orphan users in a web application. All orphans are listed and removed with a y / n prompt. We found a similar script in multiple places on the web but none worked as advertised. The A Team updated the following to ensure reporting and cleanup completed without failure.
- Automated the scan of the entire farm.
- Turned on in console reporting for a play by play. Run the script with an account that has site collection admin rights to avoid Access Denied errors.
List Custom Solutions.
Custom solutions are tricky to migrate, its important to list all solutions, check for compatibility and install them to the new environment before the migration. We found a few of these online and have enhanced SPSolutions.ps1 with the following elements
- Prompt for folder location and WSP elements download