mirror of
https://github.com/PurpleComputing/mdmscripts.git
synced 2026-02-03 06:03:26 +00:00
Create software-updates-settings.sh
This commit is contained in:
12
software-updates-settings.sh
Normal file
12
software-updates-settings.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
deplog="/var/tmp/depnotify.log"
|
||||
echo "Status: Changing Software Update Settings" >> ${deplog}
|
||||
/usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist AutomaticallyInstallMacOSUpdates -bool false
|
||||
/usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist AutomaticCheckEnabled -bool true
|
||||
/usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist AutomaticDownload -bool true
|
||||
/usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist CriticalUpdateInstall -bool true
|
||||
/usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist ConfigDataInstall -bool true
|
||||
/usr/bin/defaults write /Library/Preferences/com.apple.commerce.plist AutoUpdate -bool true
|
||||
Sleep 2
|
||||
echo "Command: DeterminateManualStep: 1" >> ${deplog}
|
||||
exit 0
|
||||
Reference in New Issue
Block a user