Looking for a way to sign our users out of the AppStore and iCloud as we plan on restricting those going forward.
Found a few discussions like This Post but it doesn't seem to be working on El Capitan. We've noticed the ~/Library/Preferences/com.apple.storeagent.plist file doesnt seem to exist anymore as well.
Has anyone had any success doing this?
Solved! Go to Solution.
7 years later and this still works with brew.
I'm working on a simple bash script to be pulled from a local server, install brew with their command, apply the zprofile and shellenv variables/defaults (so "brew" commands can run), run the signout command, and be done. I may throw up a new post and share it once I get it working the way I want.
Thanks for this!!!!! This is major.
I'd never seen this tool before. Thanks for posting the link to it @tobiaslinder Looks useful, but I haven't yet figured out what I would use it for.
@Ricky No need to go through a whole snapshot for that. Go to the Releases page and download the compiled version. Place it where you want it to go on your Mac, like say in, /usr/local/bin/ and then open Composer. Drag the binary from /usr/local/bin/ into the Composer sidebar and it will create a new source with the binary only in it. Whole process takes about a minute, including downloading it!
Yes @mm2270, it really is an awesome tool. You could basically update your appstore apps that you distributed without VPP by running a policy with the commands:
mas signin mas upgrade mas signout
Not the way apple would like us too do it but definitely also a way to get the job done on machines that are not personalized.
Going to ask here before starting a new discussion. The mas signout works fine for me if i type it in manually but if I try to push a script out to do it it won't work. History says the script ran fine and exited but the user is still logged in. I've been testing it on a 10.12 machine. I attached a screen shot of my script. Any suggestion?
@mcmeekin91 Have you ever figured out how to run mas via policy? I've tried using launchctl asuser [uid] /usr/local/bin/mas but doesn't work. I've also tried sudo -u [logged in user] /usr/local/bin/mas and that isn't working either.
Seems like it's trying to use mas under management account or root.