Posted on 08-03-2024 12:12 PM
Hello,
Looking for a way to disable end users from changed the Name field on MacBooks using Ventura.
System Settings / General / About .....Name
I set the name for my student machines and don't want them changing it.
Solved! Go to Solution.
08-04-2024 09:48 AM - edited 08-04-2024 09:48 AM
Create a profile for the com.apple.loginwindow preference domain and set the preference key
UseComputerNameForComputerRecordName to true.
That will prevent the user from changing the computer name.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>UseComputerNameForComputerRecordName</key>
<integer>1</integer>
</dict>
</plist>
Posted on 08-03-2024 03:24 PM
Good question,
there are two ways to change the computer name, and those are terminal commands and the sharing preference pane. If the user's lack admin rights they will be unable to change the computer name via terminal, and they can easily be block out of the sharing pref pane. See the restrictions config file payload for this.
Also you can create a policy that runs once a day to reset the computer name if necessary. JAMF will reset it back as necessary to whatever the name was set to in the computer / device record.
hope that helps
M
08-04-2024 09:48 AM - edited 08-04-2024 09:48 AM
Create a profile for the com.apple.loginwindow preference domain and set the preference key
UseComputerNameForComputerRecordName to true.
That will prevent the user from changing the computer name.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>UseComputerNameForComputerRecordName</key>
<integer>1</integer>
</dict>
</plist>
Posted on 08-05-2024 07:01 AM
Thank You, this worked well.
08-04-2024 07:52 PM - edited 08-04-2024 07:56 PM
Of course these are only necessary when the staff/students have administrator access. Standard users do not have the access required to change the computer name. (This of course also means that since they have that access, they can also un-manage the Mac, and cause other significant damage to the setup of the computer, including overriding the suggestions above, perhaps it's time to re-consider the access provided).
Posted on 08-05-2024 07:00 AM
Sorry, my mistake. OS version 14.6 Sonoma, not Ventura. System Settings, General, About. Name field is modifiable for standard users.