跳至內容

Windows 的安裝程式命令列選項

您可以將以下命令列選項與用於 Windows 的 Sophos Central Endpoint 安裝程式一起使用。

命令列選項

注意

沒有用於從更新快取安裝的命令列選項。安裝程式會自動評估 Sophos Central 帳戶中設定的任何更新快取的連線,並從這些快取安裝。

有關 Sophos Central 的更多資訊,請參見 常見問題 (FAQ)

有關安裝程式的資訊,請參見以下內容:

Windows 範例

選項 說明
Quiet

--quiet

執行安裝程序而不顯示使用者介面。

No proxy detection

--noproxydetection

不嘗試執行自動 Proxy 偵測。

No competitor removal

--nocompetitorremoval

不會嘗試自動移其他廠牌。(僅在安裝 Sophos Anti-Virus 時)。

Language

--language=<language ID\>

允許您手動設定安裝程式的語言。安裝程式預設使用系統語言。

尾端參數: 語言 ID

群組

--devicegroup=<Central group\>

--devicegroup=<Central group\>\\<Central subgroup\>

指定要加入端點的 Sophos Central 裝置群組。

您也可以使用此選項將裝置新增到子群組。

尾端參數:要加入的群組或子群組。如果它不存在,則會建立它。

CRT catalog path

--crtcatalogpath=<path to CRT catalog\>

可讓您指定要移除的其他廠牌目錄。

尾端參數:將路徑和檔案名提取到目錄資料夾。

範例:--crtcatalogpath=C:\\catalog\\productcatalog.xml

Message relays

--messagerelays=<comma-separated message relay list of IPs including the port\>

指定要使用的訊息轉送清單。

尾端參數訊息轉送的 IP 位址必須與連接埠 8190 一起指定。

範例:--messagerelays=IPADDRESS:8190

Registration server

--epinstallerserver <registration server URL\>

指定要連接的 MCS 伺服器。

尾端參數MCS 伺服器 URL 。

Proxy address

--proxyaddress=<custom proxy address\>

指定要使用的自訂 Proxy。

尾端參數不含通訊協定的 URL(將使用 HTTPS)

Proxy username

`--proxyusername=<custom proxy user name>

If a custom proxy has been specified, set the username with this option.

Trailing argument: the username of the proxy.

Proxy password --proxypassword=<custom proxy password>

If a custom proxy and username have been specified, set the password with this option.

Trailing argument: password for the proxy.

Computer name override

--computernameoverride=\<電腦名稱的覆寫>

Overrides the name of the computer to be used in Sophos Central.

Trailing argument: custom computer name.

Domain name override

--domainnameoverride=\<網域的覆寫>

Overrides the domain name of the computer to be used in Sophos Central.

Trailing argument: custom domain name.

Customer token

--customertoken=\<客戶權杖>

Specifies the token of the Sophos Central customer to associate the endpoint with.

Trailing argument: UUID which maps to a customer.

Products to install

--products=\<以逗號分隔的產品清單>

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.

Trailing argument: list of products to install, comma-separated.

Available options are:antivirus, intercept, mdr, deviceEncryptionorall.

Local install source

--localinstallsource=\<path-to-install-source>

Specifies a local install source to use during installation. This allows an installation to occur without having to download the installer files.

It isn't necessary to populate the local install source, but it is necessary to create aSophosLocalInstallSource folder.

If an empty folder is provided it is populated during the first installation.

If you wish to pre-populate the cache you can take a copy of the files from an already installed endpoint or from your update cache:

%ProgramData%\\Sophos\\AutoUpdate\\data\\Warehouse

%ProgramData%\\Sophos\\UpdateCache\\www\\warehouse

Even if a populated local install source is provided, internet access is still required and some files are downloaded. The amount of data downloaded depends on various factors including, for example:

  • Whether the platform of the installation endpoint differs from the files already populated.
  • Whether the warehouse has changes since the local install source was populated.

For the purpose of this example SomeContent represents the files and folders within theWarehousefolder.

  1. Go to%ProgramData%\\Sophos\\AutoUpdate\\data\\Warehouse\\SomeContent.
  2. Using the above path you create <SharedOrRemovableLocation>\\SophosLocalInstallSource\\SomeContent
  3. To install using this local install source you can run SophosSetup.exe --localinstallsource="\<SharedOrRemovableLocation>"
Message trail logging

--traillogging

Turns on the logging of message content between the endpoint and Sophos Central during installation.

You must switch this option off after installing, see Enabling a diagnostic message trail of Sophos MCS.

Register only

--registeronly

You use this command to re-register an endpoint that already has Endpoint Protection installed on it.

You may want to do this if you're moving regions in Sophos Central. You can use this option if you're moving devices from one account to another. You can also use this option if you're a partner and you have an endpoint that's registered to the wrong customer. Alternatively, you can use it if you're an Enterprise admin and you want to move endpoints between sub-estates.

To use this command, turn off tamper protection on the endpoint and run the installer from the account you want to move the endpoint to using--registeronly\.

Windows 範例

安裝 Sophos Anti-Virus 和 Intercept X 而無需使用者操作:

SophosSetup.exe --products=antivirus,intercept --quiet

使用 Proxy 安裝:

SophosSetup.exe --proxyaddress=<ProxyIP/FQDN>:<Port>

使用訊息轉送安裝:

SophosSetup.exe --messagerelays=192.168.10.100:8190

安裝至子群組:

SophosSetup.exe --devicegroup=”Application Servers\Terminal Servers”

將已安裝的伺服器置於「應用程式伺服器」群組的「終端伺服器」子群組中。對於名稱中有空格的任何群組,必須使用引號。

語言 ID

語言 ID
英文 1033
法文 1036
德文 1031
日文 1041
西班牙文 1034
義大利文 1040
波蘭文 1045
巴西葡萄牙文 1046
韓文 1042
簡體中文(中文) 2052
繁體中文(粵語) 3076
中國香港 3076
中國澳門 3076
中國新加坡 2052
回到頁首