How to Prevent Users from Renaming Managed Macs in Intune
Question details
The user needs to prevent end-users, including those with local administrator privileges, from modifying the computer names of Mac devices managed by Microsoft Intune.

- Product
- Microsoft Intune
- Device & OS
- macOS
- Scenario
- Administering enterprise or organizational macOS devices via Mobile Device Management (MDM) and maintaining a consistent naming convention.
- Observed behavior
- Currently, users with local administrator rights can bypass intended naming conventions by changing the Mac computer name directly in the system settings.
Ensure you have Microsoft Intune Administrator privileges and access to the Microsoft Endpoint Manager admin center to view current macOS configuration profiles and policies.
Consult Microsoft Q&A for the Latest Intune macOS Policies
Since Intune's native restriction capabilities for macOS update frequently, the best approach is to check the official Microsoft Q&A community for the latest custom configuration solutions or newly released native toggles.
Microsoft Intune does not always offer a simple graphical toggle to block local administrators from changing a Mac device name. Engaging with Intune specialists helps you discover community-vetted workarounds, such as deploying specialized .mobileconfig files.
Open your web browser and navigate to the official Microsoft Q&A portal at learn.microsoft.com/en-us/answers/questions/.
Use the search bar to query terms like 'Intune macOS prevent rename' or 'lock Mac computer name Intune' to find existing threads answered by Microsoft experts.
If no recent workaround is available, post a new question detailing your exact macOS version and your requirement to restrict local admins from altering the device name.

Deploy a Custom Shell Script to Enforce Device Names
As a practical workaround, you can deploy a shell script via Intune that periodically checks and resets the Mac's computer name to match your IT department's designated standard.
Draft Your IT Policies and Deployment Scripts with WPS Office
While managing macOS restrictions in Intune requires specialized MDM tools, you still need a reliable way to draft IT deployment guides, document configuration scripts, and track your hardware inventory. WPS Office is a free, lightweight alternative to Microsoft Office that easily handles all your IT documentation needs.
- 1. Download the Software: Visit the official WPS Office website and download the installer for your specific operating system.
- 2. Install WPS Office: Run the downloaded setup file and follow the quick on-screen instructions to install the suite.
- 3. Begin Documenting: Launch WPS Writer or Spreadsheets to start organizing your Intune management policies and device inventories.

Frequently Asked Questions
Does Intune have a built-in setting to block renaming Macs?
Currently, Intune does not offer a simple built-in UI toggle that strictly prevents a local administrator from changing a Mac's computer name. Administrators generally rely on custom configuration profiles or automated remediation scripts to manage this.
Can standard macOS users rename their managed computer?
No. By default in macOS, standard users without local administrator privileges cannot change the computer name or local hostname in System Settings. Restricting local admin rights is the easiest way to prevent name changes.
How can I remotely change a Mac's name using Intune?
You can remotely rename a macOS device enrolled in Intune by navigating to the Devices menu, selecting the specific Mac, and clicking the 'Rename device' action at the top of the device's overview pane.




