A daemon that automatically re-enables remote management on a Mac when a user disables it. Includes Apple PackageMaker file and sources.
Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
PackageMaker-Files/Remote Admin Fix.pmdoc
.gitignore
LICENSE
README
com.xraystyle.ardfix.plist
postflight.sh
preflight.sh
remotefixd

README

--- 5-16-2014: Updated for Mavericks! ---
Mavericks has made some changes to the way ARD works on clients, and watching the remote management plist file no longer had the desired effect. Script now checks for a different file that is only present when remote management is active.

Has also been tested working on 10.8.5. Functionality on 10.7 is untested.

----

Hey Mac SysAdmins! Are you tired of your pesky users disabling remote management for the admin account on the Macs you  manage? Yeah, it got real old, real fast. Here's the solution.

xraystyle's Remote Management Fix is a daemon controlled by launchctl that will automatically re-enable Remote Management in System Preferences for the admin account you specify.

It also outputs to the local system log every time it fires off, so you can see how much work it's saved you.

The pre- and post-flight scripts are supposed to go into the .pkg file you build with PackageMaker. The 'remotefixd' script is what runs when the daemon detects a change to the file that stores the remote management preference.

Open up the .pmdoc file with PackageMaker and it'll make a lot more sense.

Also, if you need a copy of PackageMaker for Mountain Lion you'll have to sign in to Apple's developer site and download a bundle called 'Xcode Auxiliary Tools', it's in there. 
(Took me an hour to figure that out. Just put it in the flippin' App Store, Apple.)

Make sure you go through the scripts and change any instance of ADMINACCOUNT to the admin account name on your systems before building the package.

The Apple PackageMaker file should be ready to open and build once any tweaks have been made.

The assembled .pkg can then be run locally by the user, or deployed en masse via Apple Remote Desktop.