Skip to content

Latest commit

 

History

History
61 lines (46 loc) · 2.4 KB

block-file-types.md

File metadata and controls

61 lines (46 loc) · 2.4 KB
ms.date title ms.reviewer ms.author author manager audience f1.keywords ms.topic ms.service ms.localizationpriority ms.collection ms.custom search.appverid ms.assetid description
04/09/2024
Block syncing of specific file types
gacarini
mactra
MachelleTranMSFT
jtremper
Admin
CSH
article
one-drive
medium
Strat_OD_admin
M365-collaboration
seo-marvel-apr2020
admindeeplinkSPO
onedrive-toc
ODB160
ODB150
MET150
7d7168dd-9015-4245-a971-61b504f834d6
In this article, you learn how to prevent users from uploading specific file types.

Block syncing of specific file types

You can prevent users from uploading specific file types when they sync their OneDrive files.

This setting prevents file types from being uploaded but not downloaded. If users already have blocked file types in their OneDrive, the files sync to their computer, but any changes they make on their computer won't be uploaded.

Note

The OneDrive sync app doesn't sync .tmp, .ini, and .lnk files.

To block uploading of specific file types

  1. Go to Settings in the SharePoint admin center, and sign in with an account that has admin permissions for your organization.

    [!NOTE] If you have Office 365 operated by 21Vianet (China), sign in to the Microsoft 365 admin center, then browse to the SharePoint admin center and open the Sharing page.

  2. Select Sync.

    Sync settings in the SharePoint admin center

  3. Select the Block upload of specific file types check box.

  4. Enter the file name extensions you want to block, for example: exe or mp3.

    [!IMPORTANT] Do not include the periods with the extensions, or any other punctuation, spaces, or special characters.

  5. Select Save.

    [!NOTE] When you configure this setting, it takes approximately 8 hours for the OneDrive sync app to detect it and apply the change.

For info about setting this sync app restriction by using PowerShell, see Set-SPOTenantSyncClientRestriction. For info about using a policy to block upload of specific files, see Exclude specific kinds of files from being uploaded.