View in File Explorer - OneDrive - Preservation Hold

Brass Contributor

OneDrive sync might be the preferable option for Microsoft, but the headaches of syncing errors in collaborative document libraries is not worth it IMO.

 

On the other hand, View in File Explorer works perfectly, as any sync issues (loss of connection etc) are spelled out right there to the user, not like OneDrive does with its tiny red flag at the task bar that people see weeks later.

 

View in File Explorer is also great because you don't even have to sync libraries. If you know the path, you just type it in File Explorer address bar.

 

View in File Explorer is also great because you can navigate to all the other folders in the site, including the preservation hold. That is gold, as the preservation hold in SharePoint is still in classic sharepoint mode, with files displayed in page view. 

a1.jpg

View in File Explorer is also great because you can use it to show your OneDrive. That is not in the manual (because MS is still pushing OneDrive?). So if you read this far, this is how you get OneDrive to View in File Explorer:

 

Add the onedrive domain to the Edge policy, next to the suggested SharePoint domain. Here is the reg to try it out. Replace XXXXX with your domain and find out which of the two edge policy locations work (use both, as is, no harm). If it works, push it to GP or intune :)

Windows Registry Editor Version 5.00

 

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge\ConfigureViewInFileExplorer]

"1"="{ \"cookies\": [ \"rtFa\", \"FedAuth\" ], \"domain\": \"XXXXXXXX.sharepoint.com\" }"

 

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Policies\Microsoft\Edge\ConfigureViewInFileExplorer]

"1"="{ \"cookies\": [ \"rtFa\", \"FedAuth\" ], \"domain\": \"XXXXXXXX.sharepoint.com\" }"


[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge\ConfigureViewInFileExplorer]

"2"="{ \"cookies\": [ \"rtFa\", \"FedAuth\" ], \"domain\": \"XXXXXXXX-my.sharepoint.com\" }"

 

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Policies\Microsoft\Edge\ConfigureViewInFileExplorer]

"2"="{ \"cookies\": [ \"rtFa\", \"FedAuth\" ], \"domain\": \"XXXXXXXX-my.sharepoint.com\" }"

 

 

(space in the above matters, so does the proper """. Copy paste should do). 

 

8 Replies

@TonyWilson Thanks so much for posting this. How to include OneDrive while also limiting to our domain was making me crazy. This is the answer.

Hi, we also work with "View in File Explorer with Edge" and i have made a Configuration profile with the "Administrative template" . I used [{"domain": "xxx.sharepoint.com", "cookies": [ "rtFa", "FedAuth" ]}] with our domain, this is working great. We can view all our sharepoint documents in file explorer. But how can I also add my-xxx.sharepoint.com so we can open OneDrive also. People also want to open there Onedrive in file explorer.

Hi Michel, the policy value should look like this:

 

{ "cookies": [ "rtFa", "FedAuth" ], "domain": "contoso.sharepoint.com" } ,{ "cookies": [ "rtFa", "FedAuth" ], "domain": "contoso-my.sharepoint.com" }

@Michel_Veenman 

@TonyWilson I would like to know how to Modify Group Policy value for the Edge policy to enable the feature for SP 2019 Onpremise site?

The easiest way is to push it as registry entries, using the entry from the OP.

A more future proof way is Intune or using deployment templates for Edge. This link has more details:

https://docs.microsoft.com/en-us/deployedge/configure-microsoft-edge
Yeah I have seen that blog earlier and want to know how would I modify this gpo value : "[{"cookies": ["rtFa", "FedAuth"], "domain": "sharepoint.com"}]" so that I can enable open with explorer in edge for SharePoint 2019's onprem site as well? The above gpo value enable's owe on spo and does not help on onprem sps . So would request something duel which could work for spo and sps
Those values are for the browser to handle the link from SPO.

Then there is powershell cmdlet to activate the view link in SPO

This is not for SPS, only for M365 SPO. For SPS you must find another approach