Not sure if this is at all helpful, but I just tested the method in the link you documented on my Sierra Mac (via JAMF 9.97) and it seems to be working... the box gets checked in System Preferences when I run it. What is it you're seeing when trying via this method?
#!/bin/bash
security authorizationdb read system.preferences > /tmp/system.preferences.plist
/usr/libexec/PlistBuddy -c "Set :shared false" /tmp/system.preferences.plist
security authorizationdb write system.preferences < /tmp/system.preferences.plist
@ndeal Actually, that does seem to work. I'm not sure why I was having mixed results before. Thanks for the help!
No problem, glad it worked. If you copied and pasted from the site you linked originally, maybe it copied smart quotes or something and that was causing some issues? I've had that happen before.
Anyone else having issues with this solution on Monterey systems? I have been testing this on a few Monterey systems and the <key>shared</key> does not get set to <false/>.
I copied the command from above and have been testing locally first. Waiting to get the proper results before uploading to Jamf.
Anyone else having issues with this solution on Monterey systems? I have been testing this on a few Monterey systems and the <key>shared</key> does not get set to <false/>.
I copied the command from above and have been testing locally first. Waiting to get the proper results before uploading to Jamf.
Were you able to resolve this? Im getting the same problem and cannot enable this anymore.
Were you able to resolve this? Im getting the same problem and cannot enable this anymore.
I think the PlistBuddy version is working, doing the testing this week. I will update this thread when I have completed the testing.
I think the PlistBuddy version is working, doing the testing this week. I will update this thread when I have completed the testing.
i havent got this working on Monterey or Ventura
I think the PlistBuddy version is working, doing the testing this week. I will update this thread when I have completed the testing.
Where you able to ever get this working on Monterey?
Where you able to ever get this working on Monterey?
Just wanted to chime in that I've also had numerous issues getting this or other similar scripts to work on Monterey since I think around 12.6, but I can't be sure when it started. It just doesn't seem to get applied to the system.preferences plist anymore.
Has anyone been able to get this working for who it stopped working for? If so, I would love to know what you did to get it working again.