I need some help writing a script to push out to student machines. We are trying to disable Expose/Mission Control/Spaces. I know there are a few other threads on this topic using config profiles, but I was looking for a script to push out as well with Casper Remote to add to our arsenal. I can go to a student machine, open terminal and run these commands:
defaults write com.apple.dock mcx-expose-disabled -bool TRUE
defaults write com.apple.dashboard mcx-disabled -boolean YES
killall Dock
Doing so disables what we need disabled. I tried to turn it into a script for Casper Remote as follows:
#!/bin/sh
defaults write com.apple.dock mcx-expose-disabled -bool TRUE
defaults write com.apple.dashboard mcx-disabled -boolean YES
killall Dock
Remotely pushing this out does not work though. I also tried adding a sudo to the first line with no luck. I'm guessing this needs to be pushed out at the user level. We use a couple of different generic accounts. I'm not sure how to write the script for each account. I may be going about this the wrong way. Any help or suggestions would be appreciated!