{"id":51,"date":"2014-12-09T12:43:26","date_gmt":"2014-12-09T12:43:26","guid":{"rendered":"https:\/\/www.lieben.nu\/liebensraum\/?page_id=51"},"modified":"2014-12-09T12:43:26","modified_gmt":"2014-12-09T12:43:26","slug":"o365uploader","status":"publish","type":"page","link":"https:\/\/lieben.nu\/liebensraum\/o365uploader\/","title":{"rendered":"O365Uploader"},"content":{"rendered":"<p><span style=\"color: #ff0000;\"><strong>Notice:\u00a0<\/strong><\/span><span style=\"color: #ff0000;\"><span style=\"color: #008000;\"><a style=\"color: #008000;\" href=\"https:\/\/www.lieben.nu\/liebensraum\/o365migrator\/\">O365Migrator <\/a><\/span>includes and improves upon everything O365Uploader does, please use that instead. O365Uploader is discontinued and will remain here only as an example of using Powershell to upload data to Sharepoint Online.<\/span><\/p>\n<p><strong>Intro<\/strong><\/p>\n<p>This free tool will upload any folder or files in bulk that you specify from your on premises infrastructure, to the cloud. It is compatible with the following destinations:<\/p>\n<ul>\n<li>Office 365 Sharepoint<\/li>\n<li>Office 365 OneDrive<\/li>\n<li>Personal OneDrive<\/li>\n<li>Sharepoint 2013<\/li>\n<\/ul>\n<p><strong>What does it do?<\/strong><\/p>\n<p><a href=\"https:\/\/www.lieben.nu\/liebensraum\/wp-content\/uploads\/2015\/07\/O365uploader.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-344\" src=\"https:\/\/www.lieben.nu\/liebensraum\/wp-content\/uploads\/2015\/07\/O365uploader.png\" alt=\"O365uploader\" width=\"970\" height=\"313\" srcset=\"https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2015\/07\/O365uploader.png 970w, https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2015\/07\/O365uploader-300x97.png 300w, https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2015\/07\/O365uploader-768x248.png 768w\" sizes=\"auto, (max-width: 970px) 100vw, 970px\" \/><\/a><\/p>\n<ul>\n<li>Prescan \/ Analysis of all your files and folders to see if they meet the requirements Sharepoint \/ OneDrive imposes including detailed logging and automated fixes for most common issues<\/li>\n<li>It checks for illegal characters or extensions in filenames and folders and autocorrects them, for example: (:,*,?,&#8221;,&lt;,&gt;,|,#,{,},%,~,&amp;)<\/li>\n<li>It checks for total path lengt &gt; 260 characters and skips them<\/li>\n<li>It uploads everything else to the library you specify<\/li>\n<li>It logs all this info to a detailed log file that can be analyzed in excel to easily figure out which files or foldersfailed.<\/li>\n<li>Unrestricted uploads (no limit to the number of files uploaded in bulk)<\/li>\n<li>Includes the original modified \/ creation date on the files<\/li>\n<li>It does\u00a0<strong>not\u00a0<\/strong>support resuming an upload, it will do an overwrite<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.lieben.nu\/liebensraum\/wp-content\/uploads\/2015\/07\/O365_summary.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-345\" src=\"https:\/\/www.lieben.nu\/liebensraum\/wp-content\/uploads\/2015\/07\/O365_summary.png\" alt=\"O365_summary\" width=\"1575\" height=\"125\" srcset=\"https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2015\/07\/O365_summary.png 1575w, https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2015\/07\/O365_summary-300x24.png 300w, https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2015\/07\/O365_summary-1024x81.png 1024w, https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2015\/07\/O365_summary-768x61.png 768w, https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2015\/07\/O365_summary-1536x122.png 1536w\" sizes=\"auto, (max-width: 1575px) 100vw, 1575px\" \/><\/a><\/p>\n<p>I&#8217;m by no means a real software developer, so no warranty or guarantees are supplied. I&#8217;ve migrated tens of thousands of files and folders to Office 365 and really needed something quick and easy to make the process more efficient. This is the result of that effort, let me know how it works for you!<\/p>\n<p><strong>Requirements:<\/strong><\/p>\n<ul>\n<li>Powershell 4 (<a href=\"https:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=40855\" target=\"_blank\">download link<\/a>)<\/li>\n<li>.NET 4.5 (<a href=\"http:\/\/www.microsoft.com\/nl-nl\/download\/details.aspx?id=30653\" target=\"_blank\">download link<\/a>)<\/li>\n<li>Sharepoint Server 2013 Client Components (<a href=\"https:\/\/www.microsoft.com\/en-us\/download\/details.aspx?id=42038\" target=\"_blank\">download link<\/a>)<\/li>\n<li>Office 365 Uploader Tool\u00a0(<a href=\"https:\/\/www.lieben.nu\/liebensraum\/wp-content\/uploads\/2014\/12\/O365Uploader_v0.7.zip\">O365Uploader_v0.7<\/a>)<\/li>\n<li>run &#8220;Set-Executionpolicy Unrestricted&#8221; in an elevated powershell window<\/li>\n<li>Windows 7+ or Windows Server 2008+<\/li>\n<\/ul>\n<p><strong>User Guide<\/strong><\/p>\n<ol>\n<li>\u00a0Install all the prerequisites<\/li>\n<li>Unzip the compressed folder with the tool<\/li>\n<li>Right click O365Uploader_v0.7.ps1 and select &#8216;Run with Powershell&#8217;. If this doesn&#8217;t work, check if you set Execution Policy to Unrestricted!<\/li>\n<li>Enter the URL of your onedrive or sharepoint where you&#8217;d like to upload the folder to. Examples:\n<ol>\n<li>OneDrive For Business:\u00a0https:\/\/xxx-my.sharepoint.com\/personal\/login_xxx_yourdomain_com<\/li>\n<li>Sharepoint: https:\/\/xxx.sharepoint.com<\/li>\n<\/ol>\n<\/li>\n<li>Enter the library name, for OneDrive this is usually &#8216;Documents&#8217;, but if your tenant is for example, Dutch, it may be &#8216;Documenten&#8217; instead, like this:<a href=\"https:\/\/www.lieben.nu\/liebensraum\/wp-content\/uploads\/2014\/12\/o365uploader_documentlibraryname.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-355\" src=\"https:\/\/www.lieben.nu\/liebensraum\/wp-content\/uploads\/2014\/12\/o365uploader_documentlibraryname.png\" alt=\"o365uploader_documentlibraryname\" width=\"599\" height=\"263\" srcset=\"https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2014\/12\/o365uploader_documentlibraryname.png 599w, https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2014\/12\/o365uploader_documentlibraryname-300x132.png 300w\" sizes=\"auto, (max-width: 599px) 100vw, 599px\" \/><\/a><\/li>\n<li>Select the folder to upload<\/li>\n<li>You&#8217;ll be prompted to verify the folder first, depending on the size this may take a while and will produce a file with all issues found. (see the blue powershell console window for details)<\/li>\n<li>Correct any non-autoresolvable issues and start the upload, you&#8217;ll be prompted for your credentials.<\/li>\n<li>When the upload is finished, the powershell window in the back will tell you if there were any errors and point you to a detailed log file where you can resolve those manually.<\/li>\n<\/ol>\n<p><strong>Changelog<\/strong><\/p>\n<p>16\/09\/2015<\/p>\n<ul>\n<li>Included Rob&#8217;s fix to add the original file creation date to the uploaded file and improved error handling for illegal folder names.<\/li>\n<\/ul>\n<p>09\/07\/2015<\/p>\n<ul>\n<li>Removed 2GB filesize check, since O365 now supports larger files<\/li>\n<li>Added detailed error logging<\/li>\n<li>Added expected time left to display<\/li>\n<\/ul>\n<p>09\/02\/2015<\/p>\n<ul>\n<li>Corrected a bug that caused uploads to autocorrected illegal foldernames to fail. Only the folder would be created. (thanks Joost!)<\/li>\n<li>Removed &#8216;Start-Transcript&#8217; dependency, which was reported to fail on certain OS configurations (thanks Chris and Jens)<\/li>\n<li>Added checks for .swf and .aspx extensions<\/li>\n<\/ul>\n<p>22\/12\/2014<\/p>\n<ul>\n<li>Added check for period in folder\/file name<\/li>\n<li>Added check for various illegal suffixes in filenames<\/li>\n<li>Added verification prompt before upload to log all issues to a file beforehand so it can be fixed in advance<\/li>\n<li>Added warning for 5000+ items<\/li>\n<li>Added warning for hidden files (start with an _ )<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Notice:\u00a0O365Migrator includes and improves upon everything O365Uploader does, please use that instead. O365Uploader is discontinued and will remain here only as an example of using Powershell to upload data to Sharepoint Online. Intro This free tool will upload any folder or files in bulk that you specify from your on premises infrastructure, to the cloud. &hellip; <a href=\"https:\/\/lieben.nu\/liebensraum\/o365uploader\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">O365Uploader<\/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-51","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/pages\/51","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=51"}],"version-history":[{"count":0,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/pages\/51\/revisions"}],"wp:attachment":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/media?parent=51"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}