Script to enable Guest User on Mac
Guest User on macOS devices provides a way for unauthorized users to use your device without handing them access to your private data and digital workspace. To configure the guest user account on a Mac, users have to manually enable the Guest User option under System Preferences. With Hexnode UEM, you can remotely enable the Guest User option by executing a simple Bash command using the Execute Custom Script action.
Scripting Language – Bash
File extension – .sh
Enable Guest User Account
defaults write /Library/Preferences/com.apple.loginwindow GuestEnabled -bool TRUE
defaultscommand allows you to view and modify the settings used by applications and macOS.
/Library/Preferences/com.apple.loginwindowaccepts a Boolean value.
- To turn off the Guest User option, replace