Installer command-line options for Mac
The Sophos Central Endpoint installer for Mac supports the following command-line options.
Mac command line options
On macOS 11 Big Sur you must move the
SophosInstall folder to the user's
Runs the installer without displaying the user interface.
Specifies the Sophos Central device group to join the endpoint to.
`--devicegroup <Central group\>`
A group to join. If it doesn't exist, it is created.
Specifies a list of message relays to use.
`--messagerelays <space-separated message relay list of IPs including the port\>`
The IP address of the message relay must be specified along with the port, 8190.
--messagerelays IPADDRESS:8190 IPADDRESS:8190
Specifies a custom proxy to use.
`--proxyaddress <custom proxy address\>`
URL without protocol (will use HTTPS)
Specifies a port that the proxy uses.
`--proxyport <proxy port\>`
Port for the proxy.
If a custom proxy has been specified, set the username with this option.
` --proxyusername <custom proxy user name\>`
The username of the proxy.
If a custom proxy and username have been specified, set the password with this option.
`--proxypassword <custom proxy password\>`
The password for the proxy.
Computer name override
Overrides the name of the computer to be used in Sophos Central. Don't use quotes around the computer name. You can only use this option for a new installation.
`--computernameoverride <override for computer name\>`
Custom computer name.
Domain name override
Overrides the domain name of the computer to be used in Sophos Central. You can only use this option for a new installation.
`--domainnameoverride <override for domain\>`
Custom domain name.
Preferred domain name for usernames in Sophos Central
Sets the client to send usernames as
domain\\username instead of
machine\\username. You can only use this option for a new installation.
Specifies the MCS server to connect to.
--mgmtserver <registration server URL\>
MCS server URL.
Specifies the token of the Sophos Central customer to associate the endpoint with.
`--customertoken <the customer token\>`
A UUID which maps to a customer.
Products to install
Specifies a list of products to install. If you specifiy a product that you don't have a license for, then it isn't installed.
`--products <space separated list of products to install\>`
A list of products to install, comma-separated.
Available options are:
The Mac installer is aware of all the message relays and update caches when the installation is downloaded. Changes to caches and relays mean that you need to download a new installation. You can specify relays using the command line as well.
For more help with the installer, see Installer precheck messages.
Install Sophos Anti-Virus and Intercept X without user interaction:
sudo ./Sophos\ Installer.app/Contents/MacOS/Sophos\ Installer --products antivirus intercept --quiet
Install using a proxy:
sudo ./Sophos\ Installer.app/Contents/MacOS/Sophos\ Installer --proxyaddress <ProxyIP/FQDN> --proxyport <Port>
Install using a message relay:
sudo ./Sophos\ Installer.app/Contents/MacOS/Sophos\ Installer --messagerelays 192.168.10.100:8190
Use a file to change names
If you use command-line options, file-based overrides are ignored.
You can use a file to change names and descriptions for computers and domains. To do this, do as follows:
- Create a new file in
Use the following format:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">; <plist version="1.0"> <dict> <key>ComputerNameOverride</key> <string>OverridingComputerName</string> <key>DomainNameOverride</key> <string>OverridingDomainName</string> <key>ComputerDescriptionOverride</key> <string>OverridingComputerDescription</string> </dict> </plist>
Copy and paste the key and string pairs so that you have as many as you need.
Change the key and string pairs, as follows:
To change a computer name, replace the string for
To change the domain name, replace the string for
To change a description for a computer, replace the string
Make sure your entries obey the following rules:
Length must be from 1 to 256 characters.
Don't use newline characters.
Don't use the symbols
Don't use consecutive whitespace characters. They are replaced with a single space.
Remove any key and string pairs that you aren't using. All entries in the file are used.
Save the file in
You can do this before or after installing Sophos Endpoint Protection. However if you do it after an installation a new computer may appear in Sophos Central with the new details. The old computer is also still present. If you do it before installing we remove the old computer and the new computer appears.
To load this file, you can restart the computer or run the following command from Terminal:
sudo launchctl stop com.sophos.mcs
SMEPreferDomainName is turned on this also overrides the domain used for the reported user domain.