Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Intune SMB File & Printer Sharing Rules Setup

· 7 min read · Home Tech

In this article
  1. Background: Why Use Intune for SMB Sharing Rules?
  2. How It Works: The Settings Catalog and SMB Policies
  3. Step-by-Step: Creating the Configuration Profile
  4. How to Choose the Right Settings for Your Environment
  5. Common Problems and Troubleshooting
  6. Comparison: Intune Settings Catalog vs. Legacy Group Policy
  7. Costs and Licensing Considerations
  8. Safety and Security Best Practices
  9. Frequently Asked Questions

To set up SMB file and printer sharing rules in Microsoft Intune, you create a Windows configuration profile using the "Settings catalog" and configure the relevant policies under "File Sharing" and "Printer Sharing." This article explains the exact steps, the key policy settings, and how to target them to your devices.

Background: Why Use Intune for SMB Sharing Rules?

Intune is Microsoft's cloud-based endpoint management service. It lets IT admins enforce security and configuration policies on Windows 10/11 devices without needing on-premises Group Policy. When you need to allow or block SMB file sharing or printer sharing across a fleet of devices, Intune's Settings catalog is the modern replacement for legacy Group Policy settings.

Using Intune for these rules is particularly useful for organizations that have moved to Azure AD/Entra ID and no longer rely on traditional domain controllers. It also gives you a centralized way to enforce compliance—for example, ensuring that file sharing is disabled on all devices except those in a specific pilot group.

How It Works: The Settings Catalog and SMB Policies

The Settings catalog in Intune contains hundreds of policy settings, including the ones that control SMB file and printer sharing. These settings map directly to Windows registry values and service configurations. When you assign a profile, Intune pushes the configuration to devices via the Intune Management Extension, and the settings are applied locally.

Key settings you will use include:

  • File Sharing – Enables or disables SMB file sharing (the equivalent of the legacy "Network File and Printer Sharing" Group Policy).
  • Printer Sharing – Controls whether shared printers are published and whether clients can browse for them.
  • SMB1 Protocol – Disables the outdated SMB1 protocol, which is a common security hardening step.

These settings are found under the "File Sharing" and "Printer Sharing" categories in the Settings catalog.

Step-by-Step: Creating the Configuration Profile

  1. Sign in to the Microsoft Endpoint Manager admin center.
  2. Go to Devices > Configuration profiles > Create profile.
  3. Choose Windows 10 and later as the platform, and select Settings catalog as the profile type.
  4. Click Create, give the profile a name (e.g., "SMB Sharing Rules"), and click Next.
  5. In the Configuration settings page, click Add settings.
  6. Search for "File Sharing" and "Printer Sharing" in the search bar. You will see a list of settings. Select the ones you need, such as:
    • File Sharing > Allow File Sharing
    • Printer Sharing > Allow Printer Sharing
    • File Sharing > Disable SMB1 Protocol (if available)
  7. Set the values according to your policy. For example, set Allow File Sharing to Disabled to block SMB sharing.
  8. Click Next and assign the profile to a device group (e.g., "All Windows Devices" or a specific test group).
  9. Review and create the profile. Intune will push the settings to the targeted devices.

How to Choose the Right Settings for Your Environment

Before you configure anything, decide what your actual requirement is. There are three common scenarios:

  • Block all SMB file sharing – Set "Allow File Sharing" to Disabled. This is common for security-sensitive environments where file sharing is not needed.
  • Allow file sharing but disable printer sharing – Set "Allow File Sharing" to Enabled and "Allow Printer Sharing" to Disabled.
  • Allow both but disable SMB1 – Keep both enabled, but ensure SMB1 is disabled to prevent legacy vulnerabilities.

Also consider whether you need to configure the firewall rules. Intune does not directly manage Windows Firewall rules in the Settings catalog (that's done via a separate profile type). If you need to open port 445 (SMB) or 139 (NetBIOS), you must create a firewall policy separately.

Common Problems and Troubleshooting

Even with a correctly configured profile, you may run into issues. Here are the most common ones and how to resolve them:

  • Settings not applying – Check that the device is enrolled in Intune and has the Intune Management Extension installed. Also verify that the profile is assigned to a group that includes the device.
  • Settings revert after a reboot – This usually indicates a conflict with another policy, either from Intune or a local Group Policy. Use the Settings catalog report to see if there is a conflict.
  • File sharing still works after disabling – Some settings require a restart to take effect. Also, if the device is domain-joined, a domain Group Policy might override the Intune setting. Intune policies are applied after Group Policy, but a conflicting domain policy can still win.
  • Printer sharing not visible to clients – Ensure that the "Allow Printer Sharing" setting is enabled and that the Print Spooler service is running. Also check the network profile (private vs. public) because Windows Firewall may block sharing on public networks.

Comparison: Intune Settings Catalog vs. Legacy Group Policy

If you're coming from a traditional Group Policy background, you'll notice similarities. The Settings catalog is essentially a cloud-based version of Group Policy. However, there are key differences:

  • Management – Group Policy requires on-premises Active Directory; Intune works with Entra ID and can manage devices anywhere.
  • Delivery – Group Policy is applied at login or via background refresh; Intune pushes settings via the Intune service, usually within minutes but can take up to 8 hours if the device is offline.
  • Reporting – Intune gives you per-device status and error reporting, which is more granular than Group Policy's RSoP.

For most organizations, Intune is the better choice if you're already using it for device management. If you have a hybrid environment, you can use both, but be aware of potential conflicts.

Costs and Licensing Considerations

To use the Settings catalog for SMB and printer sharing rules, you need a license that includes Microsoft Intune. This is available as a standalone Intune license, but it's more commonly included in Microsoft 365 E3 or E5, or in Enterprise Mobility + Security (EMS) E3/E5. There is no additional per-setting cost; the cost is the license itself.

If your organization already has Microsoft 365 E3, you already have Intune and can start using it. If you're on a free tier or Windows 10/11 Pro without a business subscription, you won't be able to use Intune.

Safety and Security Best Practices

When configuring SMB sharing, security should be your top priority. Here are essential practices:

  • Disable SMB1 – SMB1 is obsolete and has known vulnerabilities. Always disable it unless you have a legacy device that absolutely requires it.
  • Use SMB3 – Modern Windows versions use SMB3 by default, which includes encryption and better security. Ensure that your devices are not falling back to SMB1.
  • Limit sharing to necessary devices – Instead of enabling file sharing on all devices, only enable it on specific groups that need it (e.g., a file server or a team's workstations).
  • Firewall configuration – If you enable sharing, ensure that the Windows Firewall allows inbound traffic only on the required ports (445 for SMB, 139 for NetBIOS). Intune can manage firewall rules via a separate profile.

Frequently Asked Questions

Can I use Intune to set up SMB file sharing on a specific folder?

No. Intune's Settings catalog only controls the system-wide SMB sharing feature. It cannot share a specific folder or set folder-level permissions. For folder-specific sharing, you would need to use a script or a different management tool, such as PowerShell, deployed via Intune.

How long does it take for the sharing rules to apply to a device?

Typically, a device checks in with Intune every 8 hours, but you can force a sync from the device by going to Settings > Accounts > Access work or school > Select the account > Sync. The profile will apply within a few minutes after the sync.

Will these settings work on Windows 10 Home?

No. Intune management requires Windows 10/11 Pro, Enterprise, or Education. Windows Home does not support MDM enrollment with Intune.

Can I block SMB sharing only on a specific network (e.g., public Wi-Fi)?

Yes, but not directly through the Settings catalog. You would need to configure Windows Firewall rules that apply only to the Public network profile. Intune's firewall profile can be used to create such rules.

What happens if a device is offline when the profile is assigned?

The device will receive the profile the next time it checks in with Intune. If the device is offline for an extended period, the settings will be applied once it reconnects.