I'm running this script from a policy in Jamf.
#!/bin/sh
defaults write com.apple.Dock contents-immutable -bool true; killall Dock
It does not do anything. However, if I run it locally from Terminal, works like a charm. Any thoughts? What I am doing wrong or forgetting?