The check command for this produces a false negative. I tested this by enabling screen sharing in System Preferences and running the following:
$ launchctl load /System/Library/LaunchDaemons/com.apple.screensharing.plist
/System/Library/LaunchDaemons/com.apple.screensharing.plist: Service is disabled
unloading this with launchctl appears to successfully stop the service, but only works for me when run with sudo privs.
The check command for this produces a false negative. I tested this by enabling screen sharing in System Preferences and running the following:
unloading this with launchctl appears to successfully stop the service, but only works for me when run with sudo privs.