Install the Sophos Connect client through GPO
You can automatically install the Sophos Connect client on users' endpoints using a script through Active Directory Group Policy Object (GPO).
Install the Sophos Connect client
To create and run the script, do as follows:
-
Open a blank file in a text editor, such as Notepad, and paste the following script:
@echo off SET Sophos_Connect=Sophos\Connect\scvpn.exe IF NOT EXIST "%ProgramFiles(x86)%\%Sophos_Connect%" GOTO INSTALL exit /b 0 REM Make sure you enter the path where you've hosted the Sophos Connect client. :INSTALL msiexec.exe /i \\WINSERVER\Users\Administrator\Downloads\SophosConnect /QN Popd
-
Save the file with a
.bat
extension. -
To add the path where you've saved the script, do as follows:
- On the Windows Server, open Group Policy Management Console (GPMC) and click Group Policy Management.
- Click the group policy that applies to users' endpoints, click Computer Configuration, and click Policies.
- Under Windows Settings, click Scripts, and double-click Startup.
- Follow the instructions to add the
.bat
file. See Working with startup scripts using the Local Group Policy Editor.
-
To apply the script, run the following command:
gpupdate /force
The command updates the group policy settings and applies the script when users start their endpoints. The Sophos Connect client is automatically installed.