Forum Discussion
Downloading a user's OneDrive data
Hi all,
In our organization, before we started moving people to OneDrive, we moved the user's home directory to a backup location and deleted the directory from the our storage. This was done with a PowerShell script that would also remove the user completely from active directory.
I need a way to do the same thing for a user that it's data is in OneDrive. I know I can download files from a SharePoint site with the PowerShell SharePoint snap-in. But I want to do this from a computer that isn't a SharePoint server with the SharePoint module. Unless there is another way.
Thanks, Rahamim.
- Maruthi GaddeIron Contributor
RahamimL you can make yourself the SiteCollection owner ( You need SharePoint Online Administrator access for this) of the users oneDrive . Navigate to the users oneDrive and use the OneDrive Sync Client to Sync the user OneDrive content.
- RahamimLIron Contributor
Maruthi GaddeI want to automate everything via script and not doing it manually. I can give the site ownership to a site via the script. The only problem is how can I download the content?
- Why download the content? Just leave it in place and give anyone that needs access access to the document over time. Long as you set a preservation to store it for a long time you are good. Much easier than trying to shift files around and it doesn’t eat into your licensing / storage.