Apr 17 2019 11:52 PM
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.
Apr 18 2019 12:29 AM
@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.
Apr 18 2019 12:48 AM
@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?
Apr 18 2019 04:39 PM
Apr 19 2019 01:41 PM
Apr 19 2019 01:56 PM
Apr 19 2019 11:42 PM
@Chris Webbyou have a point there, and I'll have to check that with my boss.
2 questions than:
Apr 20 2019 04:31 AM
Apr 20 2019 04:38 AM
Apr 20 2019 04:49 AM
Feb 02 2022 06:31 AM
@Chris Webb - as far as I know, you can let user's data stay on OneDrive, but then you have to pay for license. If you stop the payment, you lost data in user interface immediately, definitively after retention period.
How this could be done as admin for user who left the organization? When I will go in Admin Console, Compliance, eDiscovery, I wil create there Case in in the Case the search, I can select user for Exchange, but for OneDrive/Sharepoint there isn't possible to select OneDrive, only Sharepoint web collections.
Kind regards
Jindrich
Mar 08 2022 08:47 PM