Category filter
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
1 |
defaults write /Library/Preferences/com.apple.loginwindow GuestEnabled -bool TRUE |
- The
defaults
command allows you to view and modify the settings used by applications and macOS. - The
GuestEnabled
key in/Library/Preferences/com.apple.loginwindow
accepts a Boolean value. - To turn off the Guest User option, replace
TRUE
withFALSE
.
Need more help?