{"id":3990,"date":"2022-09-29T07:49:57","date_gmt":"2022-09-29T06:49:57","guid":{"rendered":"https:\/\/www.lieben.nu\/liebensraum\/?p=3990"},"modified":"2022-09-29T07:49:57","modified_gmt":"2022-09-29T06:49:57","slug":"local-client-spo-migration-script","status":"publish","type":"post","link":"https:\/\/lieben.nu\/liebensraum\/2022\/09\/local-client-spo-migration-script\/","title":{"rendered":"Local client SPO migration script"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.lieben.nu\/liebensraum\/wp-content\/uploads\/2022\/09\/image-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"767\" height=\"370\" src=\"https:\/\/www.lieben.nu\/liebensraum\/wp-content\/uploads\/2022\/09\/image-1.png\" alt=\"\" class=\"wp-image-3991\" srcset=\"https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2022\/09\/image-1.png 767w, https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2022\/09\/image-1-300x145.png 300w\" sizes=\"auto, (max-width: 767px) 100vw, 767px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">For a customer case\/project, we wanted to move only recently synced\/modified Sharepoint Online data from Tenant A to the user&#8217;s Desktop on the device itself.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The Desktop was synced to Onedrive for Business in Tenant B.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After copying, files from Tenant A should become read-only on the local device, and the link in Explorer to Tenant A&#8217;s sharepoint should be removed, including the actual onedrive sync relationship to prevent further ul\/dl&#8217;s.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Resulting in <a href=\"https:\/\/gitlab.com\/Lieben\/assortedFunctions\/-\/blob\/master\/migrate-modifiedSpOSyncedFilesToUserDesktop.ps1\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/gitlab.com\/Lieben\/assortedFunctions\/-\/blob\/master\/migrate-modifiedSpOSyncedFilesToUserDesktop.ps1<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>For a customer case\/project, we wanted to move only recently synced\/modified Sharepoint Online data from Tenant A to the user&#8217;s Desktop on the device itself. The Desktop was synced to Onedrive for Business in Tenant B. After copying, files from Tenant A should become read-only on the local device, and the link in Explorer to &hellip; <a href=\"https:\/\/lieben.nu\/liebensraum\/2022\/09\/local-client-spo-migration-script\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Local client SPO migration script<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[4,12,32,34,39,44],"tags":[],"class_list":["post-3990","post","type-post","status-publish","format-standard","hentry","category-automation","category-ems","category-office-365","category-onedrive-for-business","category-powershell","category-sharepoint-online"],"_links":{"self":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts\/3990","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/types\/post"}],"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=3990"}],"version-history":[{"count":0,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts\/3990\/revisions"}],"wp:attachment":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/media?parent=3990"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/categories?post=3990"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/tags?post=3990"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}