Using This Guide > Connect Tunnel Service > Using a command or script to run Connect Tunnel Service

Using a command or script to run Connect Tunnel Service

You can use the Windows sc.exe utility to communicate with Service Controller (services.exe) from the command prompt or in a batch file. This enables you to automate the startup and shutdown of the Dell VPN service.

Or, in an environment where you want users to be able to start the VPN connection by clicking on a shortcut (and without being aware of the credentials), you could also create a shortcut on the desktop that launches a command or batch file. For example:

To start and stop Connect Tunnel Service on a remote computer use the following commands:

sc \\SERVERNAME start ctssrv

sc \\SERVERNAME stop ctssrv

To start or stop the Connect Tunnel Service from the command line or a third-party application, invoke these commands:

%windir%\system32\sc.exe start ctssrv

%windir%\system32\sc.exe stop ctssrv