Share via

Does exclude file extensions in Onedrive even work?

Anonymous
2023-10-04T09:08:21+00:00
Microsoft 365 and Office | OneDrive | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

27 answers

Sort by: Most helpful
  1. Anonymous
    2024-12-11T22:56:47+00:00

    So I found this solution on another page: https://4sysops.com/archives/how-to-install-group-policy-admx-templates-for-onedrive/

    Basically, you drill down into the "C:\Program Files\Microsoft OneDrive" folder and find the folder at the top with t he build number (in my case, this was "24.221.1103.0003") and then in THAT folder you will find the ADMX templates you need to modify the setting through Group Policy.

    Copy the "OneDrive.admx" file from "C:\Program Files\Microsoft OneDrive[Build/version number]\adm" to "%systemroot%\PolicyDefinitions"

    Copy the "OneDrive.adml" file from "C:\Program Files\Microsoft OneDrive[Build/version number]\adm" to "%systemroot%\PolicyDefinitions\en-us" (or change "en-us" to the language code of whatever you are running)

    Once you copy these, open gpedit.msc (with admin rights) and you will find that a new "OneDrive" exists in the "Computer Configuration\Administrative Templates" folder.

    You will find dozens of new settings including "Exclude specific kinds of files from being uploaded"

    Enable the policy and click on the "Show..." button to add the exclusions. The GPO itself offers a lot of guidance on how to use it.

    Once you input all of your preferences, you will need to reboot your machine (not just close and reopen OneDrive) and the files in question should have a DnD icon next to them instead of an X or cloud or other icon indicating it is not being synced.

    Hope this helps more than me!

    Was this answer helpful?

    10 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2023-11-06T20:56:24+00:00

    Hello,

    I confirm the Exclude extension feature is completely broken.
    I tried to exclude the following extensions : .ptn, .ptn2, .ini, .ini2 which are files generated by the software PaperPort and OneDrive keeps trying to sync all of those! This is really annoying! Is there a FIX coming soon ? Thanks!

    Was this answer helpful?

    10 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2023-11-07T03:38:20+00:00

    I found out that you can manually exclude extensions and folders by editing the 'ClientPolicy.ini' file located in '\AppData\Local\Microsoft\OneDrive\settings\Personal'. Add the extensions or folders to the 'FilenameExclusionList' as follows:

    FilenameExclusionList = |log|.logs|.exe|..Photos|..Albums|..Public|..SharedFavorites|[etc.]

    Was this answer helpful?

    8 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2024-03-10T11:05:33+00:00

    I'm trying to exclude *.db but it won't recognise it / let me. Very frustrating.

    The best solution would to actually let users de-select sub-folders of Documents they don't want backed-up.

    Frustrating lack of advanced options for what is now a mature and not inexpensive service!

    Was this answer helpful?

    6 people found this answer helpful.
    0 comments No comments
  5. Anonymous
    2023-11-29T20:28:36+00:00

    This is also still broken for me. It has been broken for at least a year. Amazing, Microsoft.

    Was this answer helpful?

    6 people found this answer helpful.
    0 comments No comments