SharePoint Blocking .exe and .bat File Uploads
Summary
This guide helps you troubleshoot and resolve: SharePoint Blocking .exe and .bat File Uploads. Follow the steps below to fix the issue.
Common Causes
SharePoint Online includes built-in security controls that prevent users from uploading certain file types to document libraries. This is a standard protection for Microsoft 365 tenants and applies to organisations across Australia, including legal firms migrating practice records, court documents, and sensitive client files to SharePoint Online. If you attempt to upload an executable or script file, SharePoint will block the upload and display a warning that the file is potentially unsafe.
Why SharePoint Blocks Executable and Script Files
SharePoint Online blocks specific file extensions by default to reduce the risk of malicious code execution within your tenant. This protection is particularly important for legal organisations that handle confidential client information, practice management data, and court documentation. Allowing executable or script files into a SharePoint document library increases the attack surface and could expose sensitive legal records to malware or unauthorised access.
Default Blocked File Extensions
SharePoint Online blocks a range of file extensions by default. Commonly blocked extensions include:
.exe.bat.cmd.com.js.vbs.ps1.scr
Uploading Files Through a Web Browser
- Open your SharePoint document library in a supported web browser.
- Select Upload from the command bar.
- Choose Files or Folder.
- Browse to the file on your local device and select Open.
- If the file extension is blocked, SharePoint will display a message stating the file cannot be uploaded because it is potentially unsafe.
Managing Blocked File Types as a SharePoint Administrator
Only users with SharePoint administrator or global administrator permissions can modify the list of blocked file types. Changes should be made cautiously, especially in legal organisations handling sensitive client information.
- Sign in to the Microsoft 365 admin centre with an administrator account.
- In the left navigation, expand Admin centres and select SharePoint.
- In the SharePoint admin centre, select Settings from the left-hand menu.
- Select Properties.
- Scroll to the Blocked file types section.
- Review the current list of blocked extensions.
- If a legitimate business file type needs to be permitted, remove it from the blocked list and select Save.
- Communicate the change to all users before they attempt re-uploads.
Troubleshooting
File Still Appears Blocked After Admin Changes
- Confirm the administrator saved the changes in the SharePoint admin centre.
- Clear your browser cache or open an InPrivate or Incognito window.
- Attempt the upload again after waiting a few minutes for the change to propagate across the tenant.
- Verify the file extension exactly matches the entry removed from the blocked list, including the leading dot.
OneDrive Sync App Blocks the File
If you are using the OneDrive sync app to upload files to SharePoint, the same blocking rules apply. Files flagged as unsafe may fail to sync and display an error in the OneDrive activity centre. Move the file to an alternative location approved by your organisation, or contact your administrator for guidance.
Accessing Blocked Files Already Stored Elsewhere
If you need to access an executable or script that is already stored in a secure location outside SharePoint, do not upload it to a document library. Instead, store it on an approved file server or secure endpoint management tool managed by your IT provider.
Still Having Issues?
💻 Open a Ticket