Skip to main content
Question

disable computer name changes


Forum|alt.badge.img+4

Is there a way to disable users from changing the computer name. We have students that are constantly changing the computer names. 

3 replies

mm2270
Forum|alt.badge.img+16
  • Legendary Contributor
  • 7880 replies
  • July 6, 2023

Lock down the avenues to change the computer name? Like lock them out of the Sharing Preference Pane and prevent the use of Terminal for starters. Those 2 will stop the majority of the changes. They're students, and unless they need to use Terminal for something specific in a class, they shouldn't need to be able to run it.

You can also create policies in Jamf that re-apply a set Computer Name if you want to go that route. Personally, I think prevention up front is better, but you can also do both to really make sure they stay as the names you assigned them.


Forum|alt.badge.img+4
  • Author
  • Contributor
  • 16 replies
  • July 6, 2023
mm2270 wrote:

Lock down the avenues to change the computer name? Like lock them out of the Sharing Preference Pane and prevent the use of Terminal for starters. Those 2 will stop the majority of the changes. They're students, and unless they need to use Terminal for something specific in a class, they shouldn't need to be able to run it.

You can also create policies in Jamf that re-apply a set Computer Name if you want to go that route. Personally, I think prevention up front is better, but you can also do both to really make sure they stay as the names you assigned them.


thank you

 


AJPinto
Forum|alt.badge.img+26
  • Legendary Contributor
  • 2725 replies
  • July 7, 2023

I have a script that sets the host name, and have it scoped to all devices that do not meet our host name standard. JAMF has an extension attribute that checks the host name and defines if it’s compliant or not. If someone changes the host name, JAMF will change it back reasonably fast. 

I would suggest identifying how users are setting the host name and blocking it. Terminal requires sudo to set the host name, if they don’t have admin access they are not using that. Sharing is the other main location, and it can be blocked. 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings