51CTO 博客地址:https://blog.51cto.com/13969817
博客園博客地址:https://www.cnblogs.com/bxapollo
自從微軟于2017年的build大會上宣布OneDrive支持File-On Demand功能,用戶可以通過檔案資源管理器訪問OneDrive和SharePoint Online中的所有檔案,而無需下載所有檔案,而無需下載所有檔案,不會占用設備上的其他存盤空間,很多企業用戶非常欣喜,加速了他們推動數字化轉型的腳步,
而今OneDrive也可以與SharePoint Server 2019高度集成,用戶可以在任何設備上配置OneDrive和SharePoint的Connection,來協作檔案和共享檔案,同時也享有File On Demand的功能,讓用戶訪問和編輯資料無磁盤空間不足之憂,今天我將為大家分享OneDrive與SharePoint2019的配置方案,
配置OneDrive與SharePoint 2019的Connection有兩種方案:Group Policy或者直接修改注冊表,今天我給大家分享的解決方案是配置Group Policy,
- 客戶端Windows 10或者Windows Server 2019版本部署最新版Microsoft OneDrive app
- 在SharePoint Server 2019端配置My Site,用來對OneDrive做身份驗證
- 配置Group Policy
如何在SharePoint Server 配置My Site,就不詳細介紹了,與以往版本的配置沒有任何差異,
接下來分享一下如何配置Group Policy:
首先,使用PowerShell方式復制OneDrive.admx和OneDrive.adml到指定路徑:
? Get-ChildItem -Recurse -Path "$env:LOCALAPPDATA\Microsoft\OneDrive" -Filter "OneDrive.admx" | ? FullName -like "*\adm\OneDrive.admx" | Copy-Item -Destination "$env:WINDIR\PolicyDefinitions" -Force ? Get-ChildItem -Recurse -Path "$env:LOCALAPPDATA\Microsoft\OneDrive" -Filter "OneDrive.adml" | ? FullName -like "*\adm\OneDrive.adml" | Copy-Item -Destination "$env:WINDIR\PolicyDefinitions\en-US" -Force
其次,使用Powershell: gpedit打開local group policy editor,如下圖所示:

然后再彈出的Local Group Policy Editor頁面,在Computer Configuration->Administrative templates->Onedrive, enable下圖Specify SharePoint Server URL and Organization name 和 Specify the OneDrive Location in a hybrid environment兩個設定,

完成配置之后,就可以點擊網站Library的sync,對當前登錄的account做身份驗證,并配置OneDrive和SharePoint library之間的connection了,

配置成功如下,用戶可以按需訪問資料,默認資料是存盤在SharePoint Server端的,只有用戶訪問資料,才會從Server端download到本地存盤有一個副本,減輕用戶本次磁盤存盤壓力,

相關資料:
- User Group Policy to control OneDrive Sync Settings
- Configure Syncing with the new OneDrive sync app
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/252950.html
標籤:其他
