Posted on 05-10-2017 12:24 AM
Hi guys,
We have quite a few users who seem to download applications and run them from their desktop, Spotify and Chrome being the biggest culprits.
I'm looking for a way to remove the application from users desktop folders. We have a couple of users (read: myself and a few other IT people) that have these installed on their machines in their Applications folder, and we don't want to touch those.
Our users have local homes on our iMacs, and we run an AD environment.
What's the best/tidiest way that people have used to remove apps from multiple users desktop folders?
Posted on 05-10-2017 03:17 AM
rm -rf /Users/*/Desktop/*.app /Users/*/Desktop/*.dmg
You don't need the latter *.dmg, but I have found that if the app install process is to copy from a dmg file that often they run the app from the disk image, which tends to generate self update problems since the disk images mount as locked.
Make sure you test it first, as the last thing you want is the rm command going rogue due to a typo.
Posted on 05-10-2017 04:29 AM
An alternative would be to use a restrictions profile (restrictions > Restrict which apps are allowed to launch > disallow folders) to prevent apps from running in that location.
Posted on 05-10-2017 06:29 AM
We use restrictions profile to block apps from running in /users, would recommend.
Posted on 05-10-2017 02:57 PM
@davidacland that's not a bad idea, it solves the issue of allowing admins to run those apps, but not standard users. The only problem is though, the reason this came up in the first place was because the apps aren't getting updated, and we are trying to patch as many holes as possible.