How to install Kaspersky Endpoint Security 10 for Windows automatically through domain policies
If the user has no local administrator permissions or when you need to deploy the protection on multiple computers, Kaspersky Endpoint Security 10 for Windows is installed through Active Directory domain policies.
To install Kaspersky Endpoint Security 10 through Active Directory domain policies:
- Download the remote installation package for Kaspersky Endpoint Security 10 for Windows. If the package name contains spaces, remove them or change them to the underscore symbol ( _ ).
- Create a file with the following script:
ECHO ON
set SHARE_PATH=\\package_path
set PACKAGE_NAME=setup.bat
set __KESCLOUD_ROOT_KEY="HKLM\Software\KasperskyLab\KESCloud"
set __KESCLOUD_KEY_NAME="AutoPackageInstalled"
set __KESCLOUD_PACKAGE_FULL_PATH="%SHARE_PATH%\%PACKAGE_NAME%"
set __KESCLOUD_PACKAGE_ARGUMENTS=-s
REG QUERY %__KESCLOUD_ROOT_KEY% /v %__KESCLOUD_KEY_NAME% | FIND "0x1"
IF %ERRORLEVEL% == 1 GOTO INSTALL
GOTO END
:INSTALL
REG ADD %__KESCLOUD_ROOT_KEY% /v %__KESCLOUD_KEY_NAME% /t REG_DWORD /f /D 1
%__KESCLOUD_PACKAGE_FULL_PATH% %__KESCLOUD_PACKAGE_ARGUMENTS%
:END
set SHARE_PATH=\\package_path
set PACKAGE_NAME=setup.bat
set __KESCLOUD_ROOT_KEY="HKLM\Software\KasperskyLab\KESCloud"
set __KESCLOUD_KEY_NAME="AutoPackageInstalled"
set __KESCLOUD_PACKAGE_FULL_PATH="%SHARE_PATH%\%PACKAGE_NAME%"
set __KESCLOUD_PACKAGE_ARGUMENTS=-s
REG QUERY %__KESCLOUD_ROOT_KEY% /v %__KESCLOUD_KEY_NAME% | FIND "0x1"
IF %ERRORLEVEL% == 1 GOTO INSTALL
GOTO END
:INSTALL
REG ADD %__KESCLOUD_ROOT_KEY% /v %__KESCLOUD_KEY_NAME% /t REG_DWORD /f /D 1
%__KESCLOUD_PACKAGE_FULL_PATH% %__KESCLOUD_PACKAGE_ARGUMENTS%
:END
- Add custom values:
- SHARE_PATH=\\package_path stands for the path to the shared folder with the remote installation package for Kaspersky Endpoint Security 10 for Windows. Replace \\package_path with the path to the package. We recommend that you avoid using quotation marks.
- PACKAGE_NAME=setup.bat stands for the name of the Kaspersky Endpoint Security 10 for Windows installation package. Replace setup.bat with the remote installation package name. We recommend that you avoid using quotation marks.
- __KESCLOUD_KEY_NAME="AutoPackageInstalled" stands for the parameter which is used to confirm that the installation has been run. Replace AutoPackageInstalled with any name (use numeric and Latin characters). We recommend using the version number in quotation marks.
- Save the script with the BAT extension, e.g. install_kes_cloud.bat.
the file with the script and the remote installation package for Kaspersky Endpoint Security 10 for Windows must be located in the shared folder which can be accessed by the server and workstations where the protection will be deployed.
- Open Group Policy Management in Control Panel → Administrative Tools or with the command gpmc.msc.
- Go to Group policy objects.
- Create a new object.
- Name the new object. Click OK.
- Open the object for editing.
- Go to Computer configuration → Policies → Windows Settings → Scripts(Startup/Shutdown).
- Open the Startup script properties.
- Add the file of the script you have created.
No additional parameters are required to run the scenario.