封鎖對特定檔案類型的同步處理Block syncing of specific file types

您可以防止使用者在同步處理其 OneDrive 檔案時,上載特定的檔案類型。You can prevent users from uploading specific file types when they sync their OneDrive files.

您必須在組織中以全域或 SharePoint 管理員身分登入。You must sign in as a global or SharePoint admin in your organization.

  • 如果您使用不是系統管理員的工作或學校帳戶登入您的瀏覽器,您將會看到 [同步處理] 頁面,但不會顯示該內容。If you're signed in to your browser with a work or school account that isn't an admin, you'll see the Sync page, but the contents won't appear.

  • 如果您是使用 Microsoft 帳戶登入瀏覽器,您的個人 OneDrive 會出現。If you're signed in to your browser with a Microsoft account, your personal OneDrive will appear.

    注意

    此設定可防止上傳檔案類型,但不會下載。This setting prevents file types from being uploaded but not downloaded. 如果使用者在其 OneDrive 中已封鎖檔案類型,則檔案會同步至其電腦,但不會上傳他們對電腦所做的任何變更。If users already have blocked file types in their OneDrive, the files will sync to their computer, but any changes they make on their computer won't be uploaded.

封鎖特定檔案類型的上傳To block uploading of specific file types

  1. 開啟 [OneDrive 系統管理中心],然後按一下左窗格中的 [同步處理]。Open the OneDrive admin center, and click Sync in the left pane.

    OneDrive 系統管理中心的 [同步處理] 頁面

  2. 選取 [ 封鎖特定檔案類型的同步 處理] 核取方塊。Select the Block syncing of specific file types check box.

  3. 輸入您要封鎖的副檔名,例如: exemp3Type the file name extensions you want to block, for example: exe or mp3.

    重要

    請勿包含副檔名或任何其他標點符號、空格或特殊字元的句號。Do not include the periods with the extensions, or any other punctuation, spaces, or special characters.

  4. 按一下 [同步處理] 頁面上的 [ 儲存 ]。Click Save on the Sync page.

如需使用 PowerShell 設定此同步處理應用程式限制的相關資訊,請參閱 Set-SPOTenantSyncClientRestrictionFor info about setting this sync app restriction by using PowerShell, see Set-SPOTenantSyncClientRestriction

注意

當您設定此設定時,OneDrive 同步處理應用程式會花大約8小時的時間來偵測並套用變更。When you configure this setting, it takes approximately 8 hours for the OneDrive sync app to detect it and apply the change.