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 |
|
article |
one-drive |
medium |
|
|
|
7d7168dd-9015-4245-a971-61b504f834d6 |
In this article, you learn how to prevent users from uploading 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.
-
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.
-
Select Sync.
-
Select the Block upload of specific file types check box.
-
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.
-
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.