<?xml version="1.0" encoding="UTF-8" ?><!-- generator=Zoho Sites --><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><atom:link href="https://www.gtconsult.com/blogs/tag/SharePoint-Migration-PowerShell-Scripts/feed" rel="self" type="application/rss+xml"/><title>GTconsult - Blog #SharePoint Migration PowerShell Scripts</title><description>GTconsult - Blog #SharePoint Migration PowerShell Scripts</description><link>https://www.gtconsult.com/blogs/tag/SharePoint-Migration-PowerShell-Scripts</link><lastBuildDate>Wed, 01 Apr 2026 02:57:54 -0700</lastBuildDate><generator>http://zoho.com/sites/</generator><item><title><![CDATA[SharePoint Migration PowerShell Scripts]]></title><link>https://www.gtconsult.com/blogs/post/sharepoint-migration-powershell-scripts</link><description><![CDATA[Migrating SharePoint on a budget is the best option and I would not advice it if one can avoid it. More importantly how does one know when to splash o ]]></description><content:encoded><![CDATA[<div class="zpcontent-container blogpost-container "><div data-element-id="elm_nxbfHh6HQNeAC7nj7r-msw" data-element-type="section" class="zpsection "><style type="text/css"></style><div class="zpcontainer-fluid zpcontainer"><div data-element-id="elm_d3-WmL1kTCaK380fZ0wDDw" data-element-type="row" class="zprow zprow-container zpalign-items- zpjustify-content- " data-equal-column=""><style type="text/css"></style><div data-element-id="elm_M6QJiU-9RWC6G8ilhVs81g" data-element-type="column" class="zpelem-col zpcol-12 zpcol-md-12 zpcol-sm-12 zpalign-self- "><style type="text/css"></style><div data-element-id="elm_IDrvu3eFSXCzXAH6srRdlA" data-element-type="text" class="zpelement zpelem-text "><style> [data-element-id="elm_IDrvu3eFSXCzXAH6srRdlA"].zpelem-text { border-radius:1px; } </style><div class="zptext zptext-align-center " data-editor="true"><p>Migrating SharePoint on a budget is the best option and I would not advice it if one can avoid it. More importantly how does one know when to splash out on a tool? Well an easy way would be to check out our <a href="https://www.gtconsult.com/sharepoint-migration-checklist/">SharePoint Migration Checklist </a>. &nbsp;Not having a tool to migrate a SharePoint farm or complete a checklist requires additional help. &nbsp;Introducing the SharePoint Migration PowerShell Scripts.</p><p>There are a few important areas to watch out for when migrating SharePoint to Office 365, or another new version like SharePoint 2016. &nbsp;The GTconsult A Team have made a few SharePoint PowerShell Migrations Scripts to assist. &nbsp;Cleaning up orphans users, listing custom solutions, finding large lists and calculating the size of a SharePoint environment. &nbsp;Enjoy</p><p><span style="color:rgb(166, 206, 57);font-weight:700;"><a href="https://www.gtconsult.com/sharepoint-migration-white-paper" title="Download our Migration White Paper" target="_blank" rel="">Download our Migration White Paper</a></span></p><h3 id="tip">Tip</h3><h6 id="ifyourunsharepoint20102013managementshellandgetthefollowingerrorthelocalfarmisnotaccessiblecmdletswithfeaturedependencyidarenotregisteredcheckouthowtofixitspanstylefontsize16pxspanstylefontfamilysegoeuiherespanspan">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 <span style="font-size:16px;"><strong><a href="https://social.technet.microsoft.com/wiki/contents/articles/20399.sharepoint-2013-the-local-farm-is-not-accessible-cmdlets-with-featuredependencyid-are-not-registered.aspx"><span style="font-family:&quot;Segoe UI&quot;;">here</span></a></strong></span></h6><h3 id="sharepointmigrationpowershellscripts">SharePoint Migration PowerShell Scripts</h3><h3 id="cleanuporphanusers">Clean-up orphan users</h3><p>It is best to remove orphan users as they serve no purpose in a migration. We created the <strong>SPOrphans.ps1</strong> 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. &nbsp;The A Team updated the following to ensure reporting and cleanup completed without failure.</p><ol><li>Automated the scan of the entire farm.</li><li>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.</li></ol><h3 id="listcustomsolutions">List Custom Solutions</h3><p>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 <strong>SPSolutions.ps1</strong> with the following elements</p><ol><li>Prompt for folder location and WSP elements download</li></ol><h3 id="findlargelists">Find Large Lists</h3><p>SharePoint Online throttles any list above 5000 item. We found <strong>SPLargeLists.ps1</strong> which was good but it needed a few enhancements so this is what we did.</p><ol><li>If the account you are using does not have access to the site it would give you the location to resolve the issue</li><li>Update $ErrorActionPreference to SilentlyContinue if you feel the need not to see the duplicate error</li></ol><h3 id="calculatesizeofthesharepointfarm">Calculate Size of the SharePoint Farm</h3><p>It’s important to find out how much data there is to migrate as it will provide a ballpark figure on how long it will take to move. We updated <strong>SiteCollectionSize.ps1</strong> to bring back all site collections and their total size with a SharePoint Farm for that reason.</p><br><p>The 4 most important SharePoint Migration PowerShell Scripts according to the GTconsult A Team. &nbsp;Please let us know if you think we should add to this list by adding a comment below.</p></div>
</div></div></div></div></div></div> ]]></content:encoded><pubDate>Mon, 03 Jul 2017 20:37:40 +0000</pubDate></item></channel></rss>