Platform compatibility
Requires macOS 15 or later.
Set up the control
1
Add a configuration
Go to MDM > Controls, open SMB hardening, then click Add configuration.
2
Review the setting
There’s nothing to fill in: the configuration turns File Sharing off.
3
Select targeting
Choose which devices to apply the configuration to: all macOS devices, specific device groups, or a custom target. Click Activate to deploy the configuration. Save keeps it inactive.
Settings
File Sharing (SMB) is turned off and stays off on the Mac: no folder of the Mac is shared over the network.
How it works
Primo runs a script on each Mac and checks the result with a policy.- The script records whether the Mac’s SMB server was turned on, then stops it and keeps it from starting again.
- The policy fails as soon as the Mac listens for SMB connections again, for example when someone turns File Sharing back on, and Primo runs the script again.