As we’re updating the Office 365 Administration Inside Out book (now called Microsoft 365 Administration Inside Out), I came across this chapter I wrote on OneDrive for Business Known Folder Move (KFM). This is the legacy method that won’t work for new deployments, but wanted it documented for posterity so that we could reference it for folks that inherited deployments using it so they know what to roll back.… [ Continue reading ]
Scripting a SharePoint, OneDrive, or Teams library to sync with the OneDrive for Business client
In today’s episode of “weird ways to do things,” we’ll look at scripting synchronizing a SharePoint library with the OneDrive for Business client.
There are a few ways to skin this cat.
The Right Way
First, I’d recommend using Group Policy.… [ Continue reading ]
Common Teams, SharePoint Online, and OneDrive for Business Governance Controls
Last week, while I was working with a customer to on-board OneDrive and Teams, we started a discussion around governance. I had an older template that I had put together a few years ago for another government customer, but I decided to revisit it and update it with current controls.… [ Continue reading ]
Disabling OneDrive for Business
Today, a colleague asked how to disable OneDrive for Business for a customer.
The answer, of course, is like many tech answers.

In this case, it depends on whether you mean “prevent OneDrive from provisioning” or “prevent users from accessing OneDrive sites that have already been provisioned.” … [ Continue reading ]
Update to OneDrive for Business Admin tool
Based on some user feedback, I’ve made the following modifications to the OneDrive for Business Admin Tool:
- Fixed a reference to the original function name for FolderToDelete
- Added verbiage referencing the -Confirm parameter when using FolderToDelete parameter
- Tidied up code indentations to make it more readable
I’ve got some additional feedback that I will incorporate as well (once I figure out how to do it).… [ Continue reading ]
Adopting OneDrive for Business
OneDrive for Business is, from my perspective, one of the most under-utilized but benefit-rich parts of the Office 365 platform, allowing organizations (especially organizations that subscribe to the E3 or higher SKU) virtually unlimited storage, versioning, and recovery capability for their file-based storage.… [ Continue reading ]
Update to the OneDrive for Business Admin Tool
Today, I pressed in a little bit on exploring CSOM–at least as it relates to the OneDrive for Business Admin tool.
One of my peers asked if there was a command that we could use to check to see if a site had been put on a retention hold. … [ Continue reading ]
Alerting on OneDrive Deleted Item Activity
I had a customer recently raise some questions about how to provide further enhancements and protections around their OneDrive for Business deployments. Suppose this scenario exists:
- Users are site collection administrators over their OneDrive for Business sites (default configuration)
- Retention policies are configured, but may only be configured to provide a very minimal amount of data protection (such as 90 days from creation or last modification of data) due to organizational legal compliance
- No retention policies are in effect for the target data (as all the data we’re concerned with is technically older than 90 day creation or last modified date)
- Malicious or disgruntled user deletes OneDrive data
- Deletes data in OneDrive
- Empties recycle bin
- Empties second stage recycle bin
At this point, for any data older than 90 days, it is lost.… [ Continue reading ]
SharePoint Online and OneDrive for Business Custom Sharing Controls
Today, we’re going to explore two relatively new sharing controls in SharePoint Online (and, by extension, OneDrive for Business). The two options we’re going to look at are located inside the SharePoint Admin Center (https://<tenant>-admin.sharepoint.com) under Sharing:

Thanks for playing!
I was so excited to see this notification in the TechNet Gallery today when I logged in:

Thanks to everyone for making this one of the most downloaded OneDrive tools in the Gallery! As a thanks for your support, feel free to download it as many times as you like!… [ Continue reading ]
Adding OneDrive Locations to an Existing Retention Policy
Yesterday, while working with a customer, I was asked if there is a way to programmatically add OneDrive locations to an existing retention policy. Say, for example, you have a blanket retention policy that covers all of your tenant at a base level (which is what I typically recommend to ensure you at least have either belt or suspenders), but then you have a second set of users that need a longer policy.… [ Continue reading ]
Update to the OneDrive for Business Admin Tool
While working through an issue with a customer today, we needed to add some OneDrive sites to a retention policy. No problem! Except for the part where no one has a list of OneDrive sites and the user interface doesn’t let you search or browse for them.… [ Continue reading ]
Update: OneDrive for Business Admin Tool
I was shocked to discover that I hadn’t updated the OneDrive for Business Admin Tool since January. Shocked that I hadn’t had any good ideas for it. Shocked, I tell you.
And then, a requirement presented itself for a tenant-to-tenant migration: how big are all of the OneDrive sites?… [ Continue reading ]
Update to the OneDrive for Business Admin Tool
Over the past several months, I’ve slowly been adding features to the OneDrive for Business Admin Tool (you can read about the previous updates and features here, here, and here). Earlier this week, one of my peers asked if I knew of an easy way for a customer to search OneDrive for Business sites and delete all files of a certain type (say, video files).… [ Continue reading ]
Recovering from Crypto- or Ransomware attacks with the OneDrive for Business Admin Tool
Recently, I had a requirement come up to enable the bulk restore of content from a OneDrive for Business site in the event of a cryptoware or ransomware attack. OneDrive has versioning turned on, so I figured this would be an “easy” add. … [ Continue reading ]
