COMMAND LINE CONFIGURATIONS

CodeNameTwinkie
New Contributor II

Hi,
can somebody help me with a script to disable LaunchDaemons?
I need to push this out to all systems and wanted to see if I could do it without the need to go to each system for OSX 10 AND 11.

NSA Identified Exploit Vectors Disable each with “sudo launchctl unload –w ${LOCATION}”

/System/Library/LaunchDaemons/com.apple.dashboard.advisory.fetch.plist ;

/System/Library/LaunchDaemons/com.apple.UserNoticationCenter.plist ;

/System/Library/LaunchDaemons/com.apple.RemoteDesktop.PrivilegeProxy.plist ;

/System/Library/LaunchDaemons/com.apple.IIDCAssistant.plist ;

/System/Library/LaunchDaemons/com.apple.blued.plist ;

/System/Library/LaunchDaemons/com.apple.bluetoothReporter.plist ;

/System/Library/LaunchDaemons/com.apple.bluetoothaudiod.plist ;

/System/Library/LaunchAgents/com.apple.RemoteUI.plist ;

/System/Library/LaunchAgents/com.apple.RemoteDesktop.plist ;

/System/Library/LaunchAgents/com.apple.bluetoothUIServer.plist ;

Necessary Services

(usually enabled by default – may be enabled with “launchctl –w load …”)

sudo launchctl load -w

/System/Library/LaunchDaemons/com.apple.mDNSResponder.plist ;

sudo launchctl load -w

/System/Library/LaunchDaemons/com.apple.mDNSResponderHelper.plist ;

3 REPLIES 3

CodeNameTwinkie
New Contributor II

Your right that is not a script so let me ask it this way can anybody help me disable UserNoticationCenter using Jamf pro?

mcrispin
Contributor II

Gotta say you are kinda going down a weird path of pain here, and I think you will find SIP to be a bit daunting. I highly recommend that you carefully read the admin guide where it deals with restricted software and configuration profiles. Also, what you have there isn't a script, it's a series of terminal commands. You might want to Google for some shell scripting basics, especially the part on what an interpreter is. Futzing around with system levels files is big deal and can carry many unintended consequences.

CodeNameTwinkie
New Contributor II

Na lol scripting is for all you Mac guys Think I found out how to do it without all that. Thank you for the help!

Executing Policy UserNoticationCenter
Locating files that match UserNotificationCenter...
Did not locate any matches for UserNotificationCenter
Searching for process UserNotificationCenter...
A process matching UserNotificationCenter was found:
username 1000 0.0 0.2 408722000 27856 ?? S 1:37PM 0:00.33 /System/Library/CoreServices/UserNotificationCenter.app/Contents/MacOS/UserNotificationCenter
Running command launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist killall NotificationCenter...