We are trying to execute the following commands to Autohide the Menu Bar when the Mac logs in automatically as Guest.
#!/bin/sh
defaults write NSGlobalDomain _HIHideMenuBar -bool true
killall Finder
When we run this from either a script on JSS or from Files and Processes as a policy, it claims to execute but the bar is not hidden. The only way we can get this to work is to put the script file on the computer in the shared users folder and then have JSS run that file on the Mac. While this works, we would really like to find a way to do this without copying a file out to all the systems we use with this feature.
Any ideas?