Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
Redmond desk5 min

How to Exclude Specific File Extensions from Backing Up to OneDrive in Windows 11

Personal OneDrive accounts have no extension filter in Windows 11. Here is how the admin-only sync policy and SharePoint block work, and what to do instead.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

On a personal Windows 11 PC, OneDrive does not offer a switch that filters backups by file extension. Microsoft documents extension-based exclusions as administrator controls for work or school devices: an OneDrive sync policy set through Group Policy or Intune, and, for an entire organization, a block-upload setting in the SharePoint admin center. If you use a personal Microsoft account on a PC you manage yourself, the realistic options are folder selection and keeping the files outside the OneDrive folder. The sections below explain which option fits your situation and what each one does and does not stop.

Check which kind of OneDrive account you have

The available controls depend on who manages the account and the device:

As an Amazon Associate I earn from qualifying purchases.

  • Work or school account on a managed PC: your IT administrator can set an extension-based upload exclusion in the OneDrive sync app policy. You can ask them to do it; you usually cannot do it yourself.
  • Work or school account, organization-wide rule: a SharePoint administrator can block uploads of listed extensions for everyone in the organization.
  • Personal Microsoft account: there is no administrator console for the account, and the SharePoint admin center is not available to you. Use the folder-level and location-based approaches described below.

Option 1: Exclude file types with the OneDrive sync policy

This is the most flexible client-side control. Microsoft’s OneDrive policy is named “Exclude specific kinds of files from being uploaded.” The administrator can enter a full filename or a wildcard pattern such as *.pst, and matching files are skipped during upload. Pattern matching is case-insensitive, so *.LOG and *.log behave the same way.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Three behaviors matter in practice:

  • Matching new files stay in the local OneDrive folder. They are not uploaded, and OneDrive shows them with an “Excluded from sync” status.
  • The policy takes effect only after OneDrive is restarted.
  • The policy governs the sync app. A user can still upload an excluded file manually through the OneDrive website, so this control is not a complete security boundary.

To apply it, an administrator follows these steps:

  1. Open the OneDrive policy in Group Policy or in the Intune device configuration profile for OneDrive.
  2. Enable Exclude specific kinds of files from being uploaded and add each pattern on its own line, for example *.log, or a complete filename such as customers-export.csv when only that file should match.
  3. Restart OneDrive on the affected PC: right-click the OneDrive cloud icon in the notification area, select Quit OneDrive, then open OneDrive again from the Start menu.
  4. Confirm the result by placing a matching file in the OneDrive folder. It should remain on the PC and show the “Excluded from sync” status rather than uploading.

This policy does not remove copies that already exist in OneDrive. Those are covered in the section on existing files below.

#1 Best Overall
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
  • Easily store and access 2TB to content on the go with the Seagate Portable Drive, a USB external hard drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

Option 2: Block uploads of an extension across the organization

If the rule should apply to everyone in a work or school organization, a SharePoint administrator can use the file-type block instead of a per-device policy. The path is SharePoint admin center > Settings > Sync > Block upload of specific file types.

  1. Sign in to the SharePoint admin center as an administrator.
  2. Go to Settings > Sync.
  3. Under Block upload of specific file types, enter each extension without a leading period or other punctuation. Enter exe, not .exe.
  4. Save the change and allow about eight hours for the OneDrive sync app to detect and apply it.

This setting blocks uploads only. It does not stop downloads of files with those extensions that are already stored in the organization’s libraries.

Rank #2
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
  • Easily store and access 5TB of content on the go with the Seagate portable drive, a USB external hard Drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

Options for a personal PC

Without administrator access, three approaches are available. None of them is an extension filter, so choose based on what you are trying to achieve.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose folders: keep selected folders off this computer

To stop specific OneDrive folders from syncing to one computer, open the OneDrive settings and go to Account > Choose folders. Clearing a folder removes its local copy from that PC, but the folder and its contents stay available online. Some important folders cannot be cleared. Do not clear Documents, Desktop, or Pictures as a workaround for a particular file type, because the choice applies to every file inside the folder.

Rank #3
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
  • Easily store and access 1TB to content on the go with the Seagate Portable Drive, a USB external hard drive.Specific uses: Personal
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop. Reformatting may be required for Mac
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

Files On-Demand: manage local storage, not uploads

Files On-Demand is built into the OneDrive app in Windows 11, according to Microsoft Support. It controls whether the content of synced files is downloaded to the PC, which can free disk space. It does not keep any extension from uploading. A file that is online-only is still part of your OneDrive, so do not treat this setting as a way to avoid backup.

Keep files outside the OneDrive folder

Files stored outside the OneDrive folder in File Explorer are not synced by location. This is the only personal-account approach that keeps a particular file type out of OneDrive entirely. The trade-off is that those files are not protected by OneDrive, so they need another backup method if they matter.

Rank #4
Seagate Portable 4TB External Hard Drive HDD – USB 3.0, 1-Year Rescue | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
  • Easily store and access 4TB of content on the go with the Seagate Portable Drive, a USB external hard drive.Specific uses: Personal
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

Moving or renaming files inside the synced folder is not a reliable exclusion. Changes and deletions in the OneDrive folder can sync to the cloud and to your other devices.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Comparing the methods

Method Who can configure it What it controls Key limitations
OneDrive sync policy (Group Policy or Intune) Administrator of a managed work or school PC Upload of new files matching a filename or wildcard pattern Restart OneDrive to apply; website uploads still possible; not a personal-account setting
SharePoint admin center block-upload setting SharePoint administrator Uploads of listed extensions across the organization Enter bare extensions; blocks uploads only, not downloads; about eight hours to apply
Choose folders Account owner Whether selected OneDrive folders sync to this PC Folder-level only; cleared folders stay online; some folders cannot be cleared
Files On-Demand Account owner, on this PC Whether synced file content is downloaded locally Storage control only; not an upload exclusion
Keep files outside the OneDrive folder Account owner Whether a file is inside the synced folder at all Those files are not protected by OneDrive
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Files already in OneDrive

An exclusion stops future uploads. It does not delete anything that has already reached OneDrive. Whether an existing local file is treated differently can depend on whether it was already synced and on the account’s policy, so verify before assuming anything about old copies. To review or remove a cloud copy, check it on the OneDrive website and delete it there deliberately. Do not rely on deleting the local copy, because that deletion can sync to the cloud.

Best Value
Sale
UnionSine 500GB Ultra Slim Portable External Hard Drive HDD-USB 3.0 | for PC, Mac, Laptop, PS4, Xbox one, Xbox 360-(Black)
  • [Upgraded Version] - This external hard drive features a mirrored logo stripe combined with a striped anti-slip design, and the rounded corners of the casing make it easier to grip. The stripes also have a heat dissipation function, ensuring stable and fast data transfer.
  • 【Ultra-thin and quiet】 - The motherboard adopts JMicron 578 noise-free solution, giving you a quiet working environment. Lightweight and portable size designed to fit in your pocket for easy portability.
  • 【Ultra-Fast Data Transfers】 - Pairing this external hard drive with JMicron 578 solution USB 3.0 and USB 2.0 interfaces enables blazing-fast data transfer. It boasts theoretical read speeds of up to 125MB/s and write speeds of up to 103MB/s.
  • 【Plug and Play】 - With no software to install, just plug it in and the drive is ready to use.The hard disk chip is wrapped with an aluminum anti-interference layer to increase heat dissipation and protect data.
  • 【What You Get】 - 1 x Portable Hard Drive, 1 x USB 3.0 Cable, 1 x User Manual, Gift-type shell packaging ,Three-year manufacturer's warranty and free technical support services.

Troubleshooting

  • A matching file still uploads: confirm the policy is enabled and the pattern is spelled correctly, then restart OneDrive. Remember that the file may have been uploaded through the website, which the sync policy does not control.
  • The SharePoint block has not taken effect: wait about eight hours after saving the setting before testing again.
  • The setting is missing from your settings: the control is an administrator policy or SharePoint admin setting. A personal account or an unmanaged PC will not show it.

Microsoft notes that organization-level restrictions can vary, so confirm the behavior with your administrator if your organization has its own rules.

Quick Recap

Bestseller No. 1
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$129.99
Bestseller No. 2
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$208.99
Bestseller No. 3
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$119.80
Bestseller No. 4
Seagate Portable 4TB External Hard Drive HDD – USB 3.0, 1-Year Rescue | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
Seagate Portable 4TB External Hard Drive HDD – USB 3.0, 1-Year Rescue | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$208.99

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.