Kris,
The path in my defaults write command is /Library/Prefences/ManagedInstalls. If you were asking for something else, let me know and I’ll check it out.
Greg,
Correct, I used “defaults write”. My commands are:
sudo defaults write /Library/Preferences/Managedinstalls ClientIdentifier MyMac
sudo defaults write /Library/Preferences/Managedinstalls AdditionalHttpHeaders -array "Authorization: Basic *************************"
Sorry for not posting a little more info before. After using the above commands, running defaults read /Library/Preferences/Managedinstalls gives me this:
{
AdditionalHttpHeaders = (
"Authorization: Basic ************************"
);
AppleSoftwareUpdatesOnly = 0;
ClientIdentifier = MyMac;
DaysBetweenNotifications = 1;
FollowHTTPRedirects = none;
IgnoreSystemProxies = 0;
InstallAppleSoftwareUpdates = 0;
InstallRequiresLogout = 0;
LastCheckDate = "2018-03-23 17:09:25 +0000";
LastCheckResult = 0;
LogFile = "/Library/Managed Installs/Logs/ManagedSoftwareUpdate.log";
LogToSyslog = 0;
LoggingLevel = 1;
ManagedInstallDir = "/Library/Managed Installs";
OldestUpdateDays = 0;
PackageVerificationMode = hash;
PendingUpdateCount = 0;
PerformAuthRestarts = 0;
ShowOptionalInstallsForHigherOSVersions = 0;
SuppressAutoInstall = 0;
SuppressLoginwindowInstall = 0;
SuppressStopButtonOnInstall = 0;
SuppressUserNotification = 0;
UnattendedAppleUpdates = 0;
UseClientCertificate = 0;
UseClientCertificateCNAsClientIdentifier = 0;
UseNotificationCenterDays = 3;
}
While sudo managedsoftwareupdates —show-config shows me:
Current configuration:
AdditionalHttpHeaders: None [not set]
AppleSoftwareUpdatesOnly: False [/Library/Preferences/ManagedInstalls.plist]
CatalogURL: None [not set]
ClientCertificatePath: None [not set]
ClientIdentifier: u'' [/Library/Preferences/ManagedInstalls.plist]
ClientKeyPath: None [not set]
ClientResourceURL: None [not set]
ClientResourcesFilename: None [not set]
DaysBetweenNotifications: 1 [/Library/Preferences/ManagedInstalls.plist]
FollowHTTPRedirects: u'none' [/Library/Preferences/ManagedInstalls.plist]
HelpURL: None [not set]
IconURL: None [not set]
IgnoreSystemProxies: False [/Library/Preferences/ManagedInstalls.plist]
InstallAppleSoftwareUpdates: False [/Library/Preferences/ManagedInstalls.plist]
InstallRequiresLogout: False [/Library/Preferences/ManagedInstalls.plist]
LocalOnlyManifest: None [not set]
LogFile: u'/Library/Managed Installs/Logs/ManagedSoftwareUpdate.log' [/Library/Preferences/ManagedInstalls.plist]
LogToSyslog: False [/Library/Preferences/ManagedInstalls.plist]
LoggingLevel: 1 [/Library/Preferences/ManagedInstalls.plist]
ManagedInstallDir: u'/Library/Managed Installs' [/Library/Preferences/ManagedInstalls.plist]
ManifestURL: None [not set]
PackageURL: None [not set]
PackageVerificationMode: u'hash' [/Library/Preferences/ManagedInstalls.plist]
PerformAuthRestarts: False [/Library/Preferences/ManagedInstalls.plist]
RecoveryKeyFile: None [not set]
ShowOptionalInstallsForHigherOSVersions: False [/Library/Preferences/ManagedInstalls.plist]
SoftwareRepoCACertificate: None [not set]
SoftwareRepoCAPath: None [not set]
SoftwareUpdateServerURL: None [not set]
SuppressAutoInstall: False [/Library/Preferences/ManagedInstalls.plist]
SuppressLoginwindowInstall: False [/Library/Preferences/ManagedInstalls.plist]
SuppressStopButtonOnInstall: False [/Library/Preferences/ManagedInstalls.plist]
SuppressUserNotification: False [/Library/Preferences/ManagedInstalls.plist]
UnattendedAppleUpdates: False [/Library/Preferences/ManagedInstalls.plist]
UseClientCertificate: False [/Library/Preferences/ManagedInstalls.plist]
UseClientCertificateCNAsClientIdentifier: False [/Library/Preferences/ManagedInstalls.plist]
UseNotificationCenterDays: 3 [/Library/Preferences/ManagedInstalls.plist]
If I then run sudo managedsoftwareupdate –vvv:
Managed Software Update Tool
Copyright 2010-2017 The Munki Project
Starting...
WARNING: Client is configured to use the default repo, which is insecure. Client could be trivially compromised when off your organization's network. Consider using a non-default URL, and preferably an https:// URL.
No CA cert info provided, so nothing to add to System keychain.
No client cert info provided, so no client keychain will be created.
Checking for available updates...
No client id specified. Requesting Mac01...
Getting manifest Mac01...
Options: {'logging_function': <function display_debug2 at 0x10539fa28>, 'ignore_system_proxy': False, 'additional_headers': {'User-Agent': u'managedsoftwareupdate/3.1.1.3447 Darwin/17.4.0'}, 'file': u'/Library/Managed Installs/manifests/Mac01.download', 'cache_data': None, 'url': u'http://munki/repo/manifests/Mac01', 'follow_redirects': u'none', 'download_only_if_changed': False, 'can_resume': False} Download error -1003: A server with the specified hostname could not be found.
Headers: None
ERROR: Could not retrieve managed install primary manifest.
Finishing...
Getting info on currently installed applications...
Done.
After which defaults read /Library/Preferences/Managedinstalls gives me this:
{
AppleSoftwareUpdatesOnly = 0;
ClientIdentifier = "";
DaysBetweenNotifications = 1;
FollowHTTPRedirects = none;
IgnoreSystemProxies = 0;
InstallAppleSoftwareUpdates = 0;
InstallRequiresLogout = 0;
LastCheckDate = "2018-03-23 17:12:37 +0000";
LastCheckResult = 0;
LogFile = "/Library/Managed Installs/Logs/ManagedSoftwareUpdate.log";
LogToSyslog = 0;
LoggingLevel = 1;
ManagedInstallDir = "/Library/Managed Installs";
OldestUpdateDays = 0;
PackageVerificationMode = hash;
PendingUpdateCount = 0;
PerformAuthRestarts = 0;
ShowOptionalInstallsForHigherOSVersions = 0;
SuppressAutoInstall = 0;
SuppressLoginwindowInstall = 0;
SuppressStopButtonOnInstall = 0;
SuppressUserNotification = 0;
UnattendedAppleUpdates = 0;
UseClientCertificate = 0;
UseClientCertificateCNAsClientIdentifier = 0;
UseNotificationCenterDays = 3;
}
Again, thank you for your help!