Home › Knowledgebase › KB-1823

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.

Quick Tip: Need immediate assistance? 💻 Open a Ticket

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.

Security warning: Enabling .exe, .bat, or other executable file types in a legal practice environment creates significant security risks. Law firms handle sensitive client data and privileged communications. Before modifying default blocking rules, consult with your IT security provider to ensure the change does not compromise client confidentiality or breach your organisation’s information security obligations.

Default Blocked File Extensions

SharePoint Online blocks a range of file extensions by default. Commonly blocked extensions include:

Do not attempt to rename a blocked file to bypass SharePoint security controls. This violates organisational security policy and may introduce malware risks to your legal practice records.

Uploading Files Through a Web Browser

  1. Open your SharePoint document library in a supported web browser.
  2. Select Upload from the command bar.
  3. Choose Files or Folder.
  4. Browse to the file on your local device and select Open.
  5. 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.

  1. Sign in to the Microsoft 365 admin centre with an administrator account.
  2. In the left navigation, expand Admin centres and select SharePoint.
  3. In the SharePoint admin centre, select Settings from the left-hand menu.
  4. Select Properties.
  5. Scroll to the Blocked file types section.
  6. Review the current list of blocked extensions.
  7. If a legitimate business file type needs to be permitted, remove it from the blocked list and select Save.
  8. Communicate the change to all users before they attempt re-uploads.
Microsoft Purview may also apply additional data loss prevention or information protection policies to your tenant. If Purview policies are in place, they can override or supplement SharePoint blocked file type settings. Review Purview policies before allowing executable or script files.

Troubleshooting

File Still Appears Blocked After Admin Changes

  1. Confirm the administrator saved the changes in the SharePoint admin centre.
  2. Clear your browser cache or open an InPrivate or Incognito window.
  3. Attempt the upload again after waiting a few minutes for the change to propagate across the tenant.
  4. 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.

If you are unsure whether a file type is safe to upload, check with your internal IT team or your managed service provider before proceeding.

Open a Ticket

Still Having Issues?

Need more help? If the issue persists after trying these steps, please open a support ticket and our team will assist you.

💻 Open a Ticket