How I Learned to Stop Worrying and Love Onedrive

How I Learned to Stop Worrying and Love Onedrive

In the past, there have been quite a few sync problems with OneDrive. Fortunately, this is a thing of the past now. In this article we’ll go deeper into why you should choose OneDrive as your Cloud storage solution and what to look out for when migrating to OneDrive.

Why Onedrive?

Onedrive is the ideal storage space for files.  Collaborating with files and it isOneDrive is the ideal platform for file storage, collaboration and accessing your files anywhere in the world. OneDrive also takes advantage of a vast array of Microsoft’s security measures. For example: the recycle bin restore possibilities, ransomware protection and the ability to backup known folders like documents and desktop.

*Recycle bin restore possibilities:

Think of this as two separate recycle bins. The moment a file is deleted, it enters the first recycle bin (first stage). The first recycle bin will hold your files for 30 days after which they’ll be transferred to the second stage recycle bin where the files remain for 60 days. Finally, after 90 days have passed you still have two-week period in which you’re able to submit a restore request to Microsoft. So, in total you’ve got a whopping 104 days to get your files back.

*Ransomware  Protection:

It’s super easy to restore files from a previous date after suffering a ransomware attack.

*Known folder Move:

When redirecting the desktop, documents and the images folder to OneDrive, you can be certain that no files will be lost in case of a hard drive crash for example. There’s also the added benefit of having all your files on the go when switching between devices.

Of course, in addition to these benefits, there are many more advantages to be mentioned. But with many advantages, there can be some caveats.

What are the risks?

Security is the keyword. Accessibility? Where does your data reside?  These of course, there are many more advantages to using OneDrive than I’ve mentioned. But with great power comes great responsibility! You need to ask yourself questions like, where does my data reside? How can it be accessed? Security is the keyword here! All of these questions are very important things that need to be looked at carefully. For more information on this please refer to my previous blogs.

How to migrate to Onedrive?

Unfortunately, migrating your user’s data to OneDrive isn’t done in a few minutes. There’re some things we need to prepare before we’re ready to migrate our data. Below I’ll explain what I think is the easiest way of deploying OneDrive in your organization. Follow these four steps for a successful migration.

*Stap 1:Pre-provision

Before we can migrate to onedrive, we need to make sure that all Before we can migrate to OneDrive, we need to make sure that all employees personal OneDrive’s are prepared. PowerShell is a necessity for this. First, we execute the following script:

$orgName=""
Connect-SPOService -Url https://$orgName-admin.sharepoint.com

#alle users look upn
$users = Get-SPOUser -Site https://$orgName.sharepoint.com |
Where-Object { $_. IsGroup -ne $true -and $_. LoginName -like '*@*.*'} |
Select-Object -ExpandProperty LoginName;

#voor call all users 1 for 1 onedrive
$users | ForEach-Object {
Request-SPOPersonalSite -UserEmails $_
}

*Step 2: Permissions

When everyone’s OneDrive is prepared, we need to make sure the admin user has access to everyone’s personal OneDrive. This too can be done with PowerShell.

$orgName=""
$AdminSiteURL="https://$Orgname-admin.sharepoint.com"
$SiteCollAdmin=" "

Connect-SPOService -Url $AdminSiteURL

$OneDriveSites = Get-SPOSite -Template "SPSPERS" -Limit ALL -IncludePersonalSite $True
Write-Host -f Yellow "Total Number of OneDrive Sites Found: "$OneDriveSites.count
 
Foreach($Site in $OneDriveSites)
{
    Write-Host -f Yellow "Adding Site Collection Admin to: "$Site.URL
Set-SPOUser -Site $Site.Url -LoginName $SiteCollAdmin -IssiteCollectionAdmin $True
}
Write-Host "Site Collection Admin Added to All OneDrive Sites Successfully!" -f Green

*Step 3: Read urls

The last step before you can begin migrating is to determine the URL’s of the personal OneDrive’s.

$orgName=""
 $LogFile = [Environment]::GetFolderPath(“Desktop”) + “\OneDriveSites.log”
 Connect-SPOService -Url https://$orgName-admin.sharepoint.com
 Get-SPOSite -IncludePersonalSite $true -Limit all -Filter “Url -like ‘-my.sharepoint.com/personal/” |select Url | Out-File $LogFile -Force

*Step 4: SharePoint migration Tool

Download the latest version of the SharePoint migration tool. No Powershell this time, but JSON files. Of course, you can also migrate manually with the SharePoint migration tool. But with JSON it’s easier and you’re able to prepare and test in advance.

Example of a JSON migrating a user’s personal folders to OneDrive.

{
  "Tasks": [
    {
"SourcePath": "\\\servername\\share$\\desktop\\username\\Desktop",
      "TargetPath": "https://tenantnaam-my.sharepoint.com/personal/url_uit_stap_3",
      "TargetList": "Documenten",
"TargetListRelativePath": "Desktop"
    },
 {
"SourcePath": "\\\server name\\share$\\desktop\\username\\Documents", "TargetPath": "https://tenantnaam-my.sharepoint.com/personal/url_uit_stap_3",
      "TargetList": "Documenten",
"TargetListRelativePath": "Documents"
    }
  ]
}

Conclusion

OneDrive is a fantastic product these days. The worries of the past about sync problems are completely gone. There’re still some concerns about how to keep your data safe which need to be looked at very carefully. But all in all, I think it’s the best Cloud storage solution out there. And migrating to OneDrive? That’s peanuts as long as you follow these steps.

Leave a Reply

Your email address will not be published. Required fields are marked *