Disable Name field in Ventura

brodeurm
New Contributor

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.

1 ACCEPTED SOLUTION

Tribruin
Valued Contributor II

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>

 

 

View solution in original post

5 REPLIES 5

mschlosser
Contributor II

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

 

 

Tribruin
Valued Contributor II

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>

 

 

Thank You, this worked well.

wakco
Contributor III

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).

brodeurm
New Contributor

Sorry, my mistake.  OS version 14.6 Sonoma, not Ventura.      System Settings, General, About.   Name field is modifiable for standard users.