Exclude OneDrive Shortcuts Sync using Intune

Let’s understand how you can exclude OneDrive Shortcuts Sync using Intune. This setting helps you to exclude files and extensions from syncing to OneDrive by lets you enter keywords to prevent the OneDrive sync app from uploading certain files to OneDrive or SharePoint. It will only block files that match your specification.

Once you configured settings, OneDrive is excluding all the new files from your local repository from syncing that aligns with the keywords. The message “Files with this icon won’t sync” Please contact your admin if you have any questions pops up, You will see in the client machine. It will not apply to existing files that are renamed to match the specified keywords. Additionally, new files created inside the synced folder and named to match the specified keywords will also not be blocked.

Here you can learn more details about the process to create a policy with Intune Settings Catalog. Let’s see a list of Intune Settings Catalog Policies.

Exclude OneDrive Shortcuts Sync using Intune

Let’s follow the below steps to Exclude OneDrive Shortcuts Sync using Intune –

Patch My PC
Intune Configuration Profiles – Create Profile
Intune Configuration Profiles – Create Profile

In Create Profile, Select Platform, Windows 10, and later and Profile, Select Settings catalog (preview). Click on Create button. 

Intune Configuration Profiles – Select Platform, Profile type
Intune Configuration Profiles – Select Platform, Profile type

On the Basics tab, enter a descriptive name, such as Exclude OneDrive Shortcuts Sync. Optionally, enter a Description for the policy, then select Next.

Create Profile -  Exclude OneDrive Shortcuts Sync using Intune
Create Profile – Exclude OneDrive Shortcuts Sync using Intune

In Configuration settings, select Add settings.

Settings catalog - Click + Add settings
Settings catalog – Click + Add settings

Select OneDrive to see all the settings in this category. Here, I selected Exclude specific kinds of files from being uploaded option below. After adding your settings, click the cross mark at the right-hand corner to close the settings picker

Adaptiva

This setting lets you enter keywords to prevent the OneDrive sync app (OneDrive.exe) from uploading certain files to OneDrive or SharePoint.

Settings Picker – OneDrive >  Exclude specific kinds of files from being uploaded
Settings Picker – OneDrive > Exclude specific kinds of files from being uploaded

All the settings are shown and configured with a default value. If you don’t want to configure a setting, then select the minus.

  • Set the Exclude specific kinds of files from being uploaded to Enabled and add *.url” and “*.lnk” in the text boxes to remove shortcuts from OneDrive being synced. Click + Add to provide more files extension for exclusion. You can enter complete names, such as “setup.exe” or use the asterisk (*) as a wildcard character to represent a series of characters.

If you enable this setting, the sync app doesn’t upload new files that match your specified keywords. No errors appear for the skipped files, and the files remain in the local OneDrive folder.

Exclude specific kinds of files from being uploaded - Enabled
Exclude specific kinds of files from being uploaded – Enabled

Under Assignments, In Included groups, select Add groups and then choose Select groups to include one or more groups. Select Next to continue.

Assignments – Select groups to include | Exclude OneDrive Shortcuts Sync
Assignments – Select groups to include | Exclude OneDrive Shortcuts Sync

In Scope tags, you can assign a tag to filter the profile to specific IT groups. Add scope tags (if required) and click Next.
In Review + create, review your settings. When you select Create, your changes are saved, and the profile is assigned.

Review + Create – Device Configuration Profile
Review + Create – Device Configuration Profile

A notification will appear automatically in the top right-hand corner with a message. Here you can see, Policy “Exclude OneDrive Shortcuts Sync” created successfully. The policy is also shown in the Configuration profiles list.

Policy "Exclude OneDrive Shortcuts Sync" created successfully
Policy “Exclude OneDrive Shortcuts Sync” created successfully

Your groups will receive your profile settings when the devices check-in with the Intune service.

Once the policy applies to the devices, In File Explorer, the files appear with an “Excluded from sync” icon in the Status column. The OneDrive sync app must be restarted after this setting is enabled for the setting to take effect. Files that are not synced will have the following icon instead of the blue or green OneDrive icon that you normally would have.

The "Excluded from sync" icon in File Explorer

Users will also see a message in the OneDrive activity center that explains why the files aren’t syncing.

"Your admin has excluded these file types from syncing" message

Author

About Author -> Jitesh has over 5 years of working experience in the IT Industry. He writes and shares his experiences related to Microsoft device management technologies and IT Infrastructure management. His primary focus area is Windows 10 Deployment solution with Configuration Manager, Microsoft Deployment Toolkit (MDT), and Microsoft Intune.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.