Fortinet black logo

EMS Administration Guide

Installing FortiClient EMS to specify SQL Server Enterprise or Standard instance

Installing FortiClient EMS to specify SQL Server Enterprise or Standard instance

If you want to use SQL Server Enterprise or Standard with FortiClient EMS, you must install FortiClient EMS using the CLI to specify the correct SQL Server instance. Ensure you have already installed and configured SQL Server Enterprise or Standard. The following instructions assume that you are familiar with SQL Server and have the access to install and modify it.

For FortiClient EMS installation CLI option descriptions, see Installing FortiClient EMS using the CLI.

To install EMS to specify SQL Server Enterprise or Standard instance:
  1. Ensure that you have the following SQL permissions. They are required when using a local or remote database:
  2. Do one of the following:
    • If you are performing a fresh EMS installation, follow the CLI commands listed in Local existing database or Remote existing database to install EMS with SQL Server Enterprise or Standard.
    • If you are upgrading an EMS instance that already uses SQL Server Enterprise or Standard, follow the CLI commands listed in Local existing database to install EMS with SQL Server Enterprise or Standard.
    • If you have an existing EMS instance that uses SQL Server Express, do the following:
      1. Back up the EMS database. See To back up the database:.
      2. Uninstall the existing EMS. This also uninstalls SQL Server Express.
      3. Follow the CLI commands listed in Local existing database to install EMS with SQL Server Enterprise or Standard.
      4. After the install completes, log in to EMS as the default admin user.
      5. Restore the EMS database that you backed up. See To restore the database:.

Local existing database

This section lists the CLI commands for when FortiClient EMS and SQL Server Enterprise or Standard are installed on the same machine.

Database type

Command

Local default instance using SQL authentication

FortiClientEndpointManagement_7.0.0.XXXX_x64.exe SQLUser=<username> SQLUserPassword=<password> InstallSQL=0 ScriptDB=1 SQLServerInstance= SQLService=<instance_name> SQLCmdlineOptions="/INSTANCENAME=" DBInitialSize=31MB DBInitialLogSize=4MB DBGrowth=11MB DBLogGrowth=11% DBLoginTimeout=31 DBQueryTimeout=61

Local default instance using local Windows authentication

FortiClientEndpointManagement_7.0.0.XXXX_x64.exe SQLServerInstance= SQLService=<instance_name> SQLCmdlineOptions="/INSTANCENAME=" InstallSQL=0 ScriptDB=1

Local named instance using SQL authentication

FortiClientEndpointManagement_7.0.0.XXXX_x64.exe SQLUser=<username> SQLUserPassword=<password> InstallSQL=0 ScriptDB=1 SQLServerInstance=<instance_name> SQLService=mssql$<instance_name> SQLCmdlineOptions="/INSTANCENAME=<instance_name>"

Local named instance using local Windows authentication

FortiClientEndpointManagement_7.0.0.XXXX_x64.exe SQLServerInstance=<instance_name> SQLService=mssql$<instance_name> SQLCmdlineOptions="/INSTANCENAME=<instance_name>" InstallSQL=0 ScriptDB=1

For example, consider installing FortiClient EMS and pointing to a local instance with the following attributes:

  • Named "database000"
  • Using SQL authentication
  • SQL username "janedoe"
  • SQL password "password123"
  • Database initial size of 31 MB
  • Database initial log size of 4 MB
  • Database growth rate of 11 MB
  • Database log growth rate of 11%
  • Database login timeout of 31 seconds
  • Database SQL query timeout of 61 seconds

The installation command for this example is as follows:

FortiClientEndpointManagement_7.0.0.XXXX_x64.exe SQLUser=janedoe SQLUserPassword=password123 InstallSQL=0 ScriptDB=1 SQLServerInstance=database000 SQLService=mssql$database000 SQLCmdlineOptions="/INSTANCENAME=database000" DBInitialSize=31MB DBInitialLogSize=4MB DBGrowth=11MB DBLogGrowth=11% DBLoginTimeout=31 DBQueryTimeout=61

Remote existing database

To create a backup directory:

Prior to installing FortiClient EMS, create a backup directory on the database server. The SQL Server service that is running on the EMS server and the Apache service that is running on the databaser server must both be able to access the backup directory. You must configure the backup directory as a subdirectory of a shared directory.

  1. On the database server, create a shared directory.
  2. Create a backup directory inside the shared directory that you created.
  3. Right-click the shared directory and select Properties.
  4. On the Security tab, ensure all users have full control of the directory.

Installation commands for remote existing databases

For remote instances using Windows authentication (domain user), do the following:

  1. Join the EMS and database servers to the same domain.
  2. Create a database user that maps to the domain user.
  3. In Command Prompt on the EMS server, run gpedit to open the Local Group Policy Editor.
  4. In Local Group Policy Editor, go to Computer Configuration > Windows Settings > Security Settings > Local Policies > User Rights Assignment.
  5. Double-click Log on as a service. In the dialog, add the desired username from the Active Directory domain.

Database type

Command

Remote default or named instance using SQL authentication

FortiClientEndpointManagementServer_7.0.0.XXXX_x64.exe SQLServer=<SQL_Server_name> SQLUser=<username> SQLUserPassword=<SQL password> InstallSQL=0 ScriptDB=1 BackupDir=c:\backup\ DBInitialSize=31MB DBInitialLogSize=4MB DBGrowth=11MB DBLogGrowth=11% DBLoginTimeout=31 DBQueryTimeout=61

Remote default or named instance using Windows authentication (domain user)

FortiClientEndpointManagement_7.0.0.XXXX_x64.exe SQLServer=<SQL_Server_name> WindowsUser=<domain name>\<username> WindowsUserPassword=<password> InstallSQL=0 ScriptDB=1 BackupDir=<backupdirectorypath> DBInitialSize=31MB DBInitialLogSize=4MB DBGrowth=11MB DBLogGrowth=11% DBLoginTimeout=31 DBQueryTimeout=61

For example, consider installing FortiClient EMS and pointing to a remote named instance with the following attributes:

  • On a computer with DNS name WIN-088
  • Using Windows authentication
  • Domain name "forticlient.ca"
  • Database initial size of 31 MB
  • Database initial log size of 4 MB
  • Database growth rate of 11 MB
  • Database log growth rate of 11%
  • Database login timeout of 31 seconds
  • Database SQL query timeout of 61 seconds

The installation command for this example is as follows. This example also includes the optional SQLEncryptConnection option:

FortiClientEndpointManagement_7.0.0.XXXX_x64.exe SQLServer=WIN-0888 WindowsUser=forticlient.ca\janedoe WindowsUserPassword=password123 InstallSQL=0 ScriptDB=1 BackupDir=\\WIN-0888\Backup SQLEncryptConnection=no DBInitialSize=31MB DBInitialLogSize=4MB DBGrowth=11MB DBLogGrowth=11% DBLoginTimeout=31 DBQueryTimeout=61

Installing FortiClient EMS to specify SQL Server Enterprise or Standard instance

If you want to use SQL Server Enterprise or Standard with FortiClient EMS, you must install FortiClient EMS using the CLI to specify the correct SQL Server instance. Ensure you have already installed and configured SQL Server Enterprise or Standard. The following instructions assume that you are familiar with SQL Server and have the access to install and modify it.

For FortiClient EMS installation CLI option descriptions, see Installing FortiClient EMS using the CLI.

To install EMS to specify SQL Server Enterprise or Standard instance:
  1. Ensure that you have the following SQL permissions. They are required when using a local or remote database:
  2. Do one of the following:
    • If you are performing a fresh EMS installation, follow the CLI commands listed in Local existing database or Remote existing database to install EMS with SQL Server Enterprise or Standard.
    • If you are upgrading an EMS instance that already uses SQL Server Enterprise or Standard, follow the CLI commands listed in Local existing database to install EMS with SQL Server Enterprise or Standard.
    • If you have an existing EMS instance that uses SQL Server Express, do the following:
      1. Back up the EMS database. See To back up the database:.
      2. Uninstall the existing EMS. This also uninstalls SQL Server Express.
      3. Follow the CLI commands listed in Local existing database to install EMS with SQL Server Enterprise or Standard.
      4. After the install completes, log in to EMS as the default admin user.
      5. Restore the EMS database that you backed up. See To restore the database:.

Local existing database

This section lists the CLI commands for when FortiClient EMS and SQL Server Enterprise or Standard are installed on the same machine.

Database type

Command

Local default instance using SQL authentication

FortiClientEndpointManagement_7.0.0.XXXX_x64.exe SQLUser=<username> SQLUserPassword=<password> InstallSQL=0 ScriptDB=1 SQLServerInstance= SQLService=<instance_name> SQLCmdlineOptions="/INSTANCENAME=" DBInitialSize=31MB DBInitialLogSize=4MB DBGrowth=11MB DBLogGrowth=11% DBLoginTimeout=31 DBQueryTimeout=61

Local default instance using local Windows authentication

FortiClientEndpointManagement_7.0.0.XXXX_x64.exe SQLServerInstance= SQLService=<instance_name> SQLCmdlineOptions="/INSTANCENAME=" InstallSQL=0 ScriptDB=1

Local named instance using SQL authentication

FortiClientEndpointManagement_7.0.0.XXXX_x64.exe SQLUser=<username> SQLUserPassword=<password> InstallSQL=0 ScriptDB=1 SQLServerInstance=<instance_name> SQLService=mssql$<instance_name> SQLCmdlineOptions="/INSTANCENAME=<instance_name>"

Local named instance using local Windows authentication

FortiClientEndpointManagement_7.0.0.XXXX_x64.exe SQLServerInstance=<instance_name> SQLService=mssql$<instance_name> SQLCmdlineOptions="/INSTANCENAME=<instance_name>" InstallSQL=0 ScriptDB=1

For example, consider installing FortiClient EMS and pointing to a local instance with the following attributes:

  • Named "database000"
  • Using SQL authentication
  • SQL username "janedoe"
  • SQL password "password123"
  • Database initial size of 31 MB
  • Database initial log size of 4 MB
  • Database growth rate of 11 MB
  • Database log growth rate of 11%
  • Database login timeout of 31 seconds
  • Database SQL query timeout of 61 seconds

The installation command for this example is as follows:

FortiClientEndpointManagement_7.0.0.XXXX_x64.exe SQLUser=janedoe SQLUserPassword=password123 InstallSQL=0 ScriptDB=1 SQLServerInstance=database000 SQLService=mssql$database000 SQLCmdlineOptions="/INSTANCENAME=database000" DBInitialSize=31MB DBInitialLogSize=4MB DBGrowth=11MB DBLogGrowth=11% DBLoginTimeout=31 DBQueryTimeout=61

Remote existing database

To create a backup directory:

Prior to installing FortiClient EMS, create a backup directory on the database server. The SQL Server service that is running on the EMS server and the Apache service that is running on the databaser server must both be able to access the backup directory. You must configure the backup directory as a subdirectory of a shared directory.

  1. On the database server, create a shared directory.
  2. Create a backup directory inside the shared directory that you created.
  3. Right-click the shared directory and select Properties.
  4. On the Security tab, ensure all users have full control of the directory.

Installation commands for remote existing databases

For remote instances using Windows authentication (domain user), do the following:

  1. Join the EMS and database servers to the same domain.
  2. Create a database user that maps to the domain user.
  3. In Command Prompt on the EMS server, run gpedit to open the Local Group Policy Editor.
  4. In Local Group Policy Editor, go to Computer Configuration > Windows Settings > Security Settings > Local Policies > User Rights Assignment.
  5. Double-click Log on as a service. In the dialog, add the desired username from the Active Directory domain.

Database type

Command

Remote default or named instance using SQL authentication

FortiClientEndpointManagementServer_7.0.0.XXXX_x64.exe SQLServer=<SQL_Server_name> SQLUser=<username> SQLUserPassword=<SQL password> InstallSQL=0 ScriptDB=1 BackupDir=c:\backup\ DBInitialSize=31MB DBInitialLogSize=4MB DBGrowth=11MB DBLogGrowth=11% DBLoginTimeout=31 DBQueryTimeout=61

Remote default or named instance using Windows authentication (domain user)

FortiClientEndpointManagement_7.0.0.XXXX_x64.exe SQLServer=<SQL_Server_name> WindowsUser=<domain name>\<username> WindowsUserPassword=<password> InstallSQL=0 ScriptDB=1 BackupDir=<backupdirectorypath> DBInitialSize=31MB DBInitialLogSize=4MB DBGrowth=11MB DBLogGrowth=11% DBLoginTimeout=31 DBQueryTimeout=61

For example, consider installing FortiClient EMS and pointing to a remote named instance with the following attributes:

  • On a computer with DNS name WIN-088
  • Using Windows authentication
  • Domain name "forticlient.ca"
  • Database initial size of 31 MB
  • Database initial log size of 4 MB
  • Database growth rate of 11 MB
  • Database log growth rate of 11%
  • Database login timeout of 31 seconds
  • Database SQL query timeout of 61 seconds

The installation command for this example is as follows. This example also includes the optional SQLEncryptConnection option:

FortiClientEndpointManagement_7.0.0.XXXX_x64.exe SQLServer=WIN-0888 WindowsUser=forticlient.ca\janedoe WindowsUserPassword=password123 InstallSQL=0 ScriptDB=1 BackupDir=\\WIN-0888\Backup SQLEncryptConnection=no DBInitialSize=31MB DBInitialLogSize=4MB DBGrowth=11MB DBLogGrowth=11% DBLoginTimeout=31 DBQueryTimeout=61