{"id":673,"date":"2016-03-29T10:26:24","date_gmt":"2016-03-29T10:26:24","guid":{"rendered":"https:\/\/www.lieben.nu\/liebensraum\/?page_id=673"},"modified":"2016-03-29T10:26:24","modified_gmt":"2016-03-29T10:26:24","slug":"o365migrator","status":"publish","type":"page","link":"https:\/\/lieben.nu\/liebensraum\/o365migrator\/","title":{"rendered":"O365Migrator"},"content":{"rendered":"<p><span style=\"color: #ff0000;\">Update<\/span>: <a href=\"https:\/\/www.lieben.nu\/liebensraum\/2017\/09\/new-sharepoint-migration-tool\/\">Microsoft finally released a tool to do what O365Migrator does! \ud83d\ude42<\/a><\/p>\n<p>When you&#8217;re moving from a homedirectories \/ fileshares (mapped to driveletters) based environment to a situation where you want your users to work in Onedrive for Business and Sharepoint Online, the best way to do so is to remove the homedirectories and shares and give your users access to Onedrive for Business and Sharepoint Online. One choice enforces adoption.<\/p>\n<p>Of course, you also need to make the data compliant first, and upload it to Office 365. You can either let your users do this, or you can use my free tool!<\/p>\n<p>O365Migrator will provision, authorize, clean up and upload. Everything you need to move from homedirectories or fileshares to Onedrive for Business and Sharepoint Online in one simple <strong>free<\/strong> tool.<\/p>\n<p><a href=\"https:\/\/www.lieben.nu\/liebensraum\/wp-content\/uploads\/2016\/03\/O365Migrator_v0.8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-768\" src=\"https:\/\/www.lieben.nu\/liebensraum\/wp-content\/uploads\/2016\/03\/O365Migrator_v0.8.png\" alt=\"O365Migrator_v0.8\" width=\"1227\" height=\"657\" srcset=\"https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2016\/03\/O365Migrator_v0.8.png 1227w, https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2016\/03\/O365Migrator_v0.8-300x161.png 300w, https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2016\/03\/O365Migrator_v0.8-1024x548.png 1024w, https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2016\/03\/O365Migrator_v0.8-768x411.png 768w\" sizes=\"auto, (max-width: 1227px) 100vw, 1227px\" \/><\/a><\/p>\n<p><strong>Features<\/strong><\/p>\n<ul>\n<li><a href=\"https:\/\/www.lieben.nu\/liebensraum\/2015\/08\/provisioning-onedrive-for-business-for-all-your-users\/\">pre-creates Onedrive Storage on demand for O365 licensed\u00a0users<\/a><\/li>\n<li><a href=\"https:\/\/www.lieben.nu\/liebensraum\/2015\/08\/setting-administrative-permissions-on-all-your-onedrive-for-business-accounts\/\">sets administrative permissions on each account for the account used to migrate the data<\/a><\/li>\n<li><a href=\"https:\/\/www.lieben.nu\/liebensraum\/o365datacleaner\/\">makes the homedirectories fully compliant with Onedrive requirements<\/a> (no sync issues!)<\/li>\n<li><a href=\"https:\/\/www.lieben.nu\/liebensraum\/o365datacleaner\/\">makes fileshares fully compliant with Sharepoint Online requirements<\/a><\/li>\n<li>automatic detection of the O4B url&#8217;s and library names<\/li>\n<li>multi-threading allows you to upload homedirectories or subfolders simultaneously<\/li>\n<li>full logging, automatic handling of errors where possible<\/li>\n<li>it&#8217;s powershell, open source, but it has a GUI!<\/li>\n<li>can be run on multiple machines or locations with different accounts at the same time<\/li>\n<li>retains original file creation dates<\/li>\n<li>Differential upload: only upload new\/changed files<\/li>\n<li>Subfolder targeting<\/li>\n<li>Retry function for failed files\/folders<\/li>\n<li>Your data is now safe from ransomware like Cryptolockers<\/li>\n<li>html report\u00a0in an automatically created O4BMoved folder\u00a0of any changes that had to be made to his\/her folder\/file structure<\/li>\n<\/ul>\n<p><strong>How to use for homedirectories<\/strong><\/p>\n<ol>\n<li>Make sure your users exist in Office 365 and <a href=\"https:\/\/www.lieben.nu\/liebensraum\/2015\/06\/office-365-automated-license-management-part-1\/\" target=\"_blank\" rel=\"noopener noreferrer\">are licensed<\/a>, several days before you migrate<\/li>\n<li>Ensure your admin\/migration user has a license (E3\/E1) or provisioning will fail<\/li>\n<li>Use the pre-provisioning and authorization options of O365Migrator to ensure their Onedrive storage space is created (this won&#8217;t overwrite any existing data)<\/li>\n<li>Ensure their onedrives have been provisioned (log in as a few of them or browse their unique url)<\/li>\n<li>identify the login names of the user you wish to migrate in UPN format (office 365 login name)<\/li>\n<li>identify the paths to their home directories (UNC or local)<\/li>\n<li>Create a CSV file with two columns. The header of the first colum should be &#8216;username&#8217;, the second column should be &#8216;path&#8217;. Then add your users to it.<\/li>\n<li>Verify the homedirectories<\/li>\n<li>Upload them<\/li>\n<\/ol>\n<p><strong>How to use for fileshares<\/strong><\/p>\n<ol>\n<li>Identify the URL to your site (usually in the form of https:\/\/tenant.sharepoint.com\/siteXXX<\/li>\n<li>Identify the document library&#8217;s title (the &#8216;name&#8217; field in the library properties)<\/li>\n<li>Select the folder you wish to upload<\/li>\n<li>Verify it first with the left button<\/li>\n<li>Upload it with the right one<\/li>\n<\/ol>\n<p><strong>How to use for both of the above<\/strong><\/p>\n<ol>\n<li>Install the required components on your migration machine:\n<ol>\n<li><a href=\"https:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=42038\" target=\"_blank\" rel=\"noopener noreferrer\">Sharepoint Online Client SDK MSI<\/a><\/li>\n<li><a href=\"http:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=35588\" target=\"_blank\" rel=\"noopener noreferrer\">Sharepoint Online Management Module<\/a><\/li>\n<li>Powershell 4 \/ .NET 4.5<\/li>\n<li><a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/dn975125.aspx\" target=\"_blank\" rel=\"noopener noreferrer\">Office 365 Online Module <\/a>(only step 1\u00a0is required)<\/li>\n<\/ol>\n<\/li>\n<li>Run &#8216;Set-ExecutionPolicy Unrestricted&#8217; in an elevated Powershell window, sign the script, or run the script in ByPass mode<\/li>\n<li>Download (<a href=\"https:\/\/www.lieben.nu\/liebensraum\/wp-content\/uploads\/2016\/03\/O365Migrator_v1.00.zip\">O365Migrator_v1.00.zip<\/a>)\u00a0or\u00a0<a href=\"https:\/\/www.lieben.nu\/liebensraum\/wp-content\/uploads\/2016\/05\/O365Migrator_v0.9.zip\">O365Migrator_v0.9<\/a>\u00a0and unzip it locally<\/li>\n<li>Right click all files and unblock them if necessary<\/li>\n<li>Run O365Migrator.ps1 from the cmdline, NOT from ISE! (leave the other files in the same folder!)<\/li>\n<li>The csv file in the zip is an example file for homedirect migration<\/li>\n<li>Log files will be in %APPDATA%<\/li>\n<li>Specifying a subfolder is optional, this will create a subfolder in the destination and upload there instead of to the root<\/li>\n<li>Make sure you don&#8217;t set the document library property that enforces checkout\/checking<\/li>\n<li>Use a cloud-sourced Admin account (not synced from somewhere)<\/li>\n<li>Do not use MFA on this admin account, SpO CSOM doesn&#8217;t support MFA<\/li>\n<\/ol>\n<p><strong>Retrying failed items<\/strong><\/p>\n<p>The script has no built in functionality for this, you&#8217;ll have to either re-run it (note it will overwrite anything already there), or fix any issues you encounter in the log manually.<\/p>\n<p><strong>Speed considerations<\/strong><\/p>\n<p>Microsoft caps the maximum speed at which you can upload using CSOM. There are different throttles, the first is user based, which you can circumvent by using multiple instances. If you surpass that, you will get blocked at the tenant level. This is why you should always do a test migration first! If this tool can&#8217;t help you, use the <a href=\"https:\/\/support.office.com\/en-us\/article\/Upload-on-premises-content-to-SharePoint-Online-555049c6-15ef-45a6-9a1f-a1ef673b867c\" target=\"_blank\" rel=\"noopener\">Sharepoint Online File Import Service<\/a>, which isn&#8217;t capped.<\/p>\n<p><strong>Important disclaimer<\/strong><\/p>\n<p>I&#8217;m not a real programmer, this code is meant as a Proof Of Concept. I do not guarantee this product will work in your setup, and I offer no dedicated support, I try to help everyone on a best-effort basis but also have to work for a living. So make sure you test well and understand the code before you use it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Update: Microsoft finally released a tool to do what O365Migrator does! \ud83d\ude42 When you&#8217;re moving from a homedirectories \/ fileshares (mapped to driveletters) based environment to a situation where you want your users to work in Onedrive for Business and Sharepoint Online, the best way to do so is to remove the homedirectories and shares &hellip; <a href=\"https:\/\/lieben.nu\/liebensraum\/o365migrator\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">O365Migrator<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"_crdt_document":"","footnotes":""},"class_list":["post-673","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/pages\/673","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/comments?post=673"}],"version-history":[{"count":0,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/pages\/673\/revisions"}],"wp:attachment":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/media?parent=673"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}