This is the core of the Windows NT service. Each service you create will turn using this application. This application has some command line options :
- Service : This option is used when application run under the control of the Windows Service NT Control Manager
- Install : This option will install a new service, use Name option to specify the name of the service.
- Remove : This option will remove an existing service, use Name option to specify the name of the service.
- Console : This option is used to run your service under the console mode, use Name option to specify the name of the service.
- Help : This option display help
- Name : The name of the service
- Account : Specifies a service's security context, which defines its logon type. Values are :
- LocalService : An account that acts as a non-privileged user on the local computer, and presents anonymous credentials to any remote server.
- LocalSystem : An account, used by the service control manager, that has extensive privileges on the local computer and acts as the computer on the network.
- NetworkService : An account that provides extensive local privileges, and presents the computer's credentials to any remote server.
- User : An account defined by a specific user on the network. Set values for both the Username and Password option.
- Username : The account name when User value is choose for Account option.
- Password : The password of the account when User value is choose for Account option.
- StartMode : The service start options. This parameter can be one of the following values.
- Automatic : A service started automatically by the service control manager during system startup.
- Manual : A service started by the service control manager when an user manually start a service.
- Disabled : A service that cannot be started.
- Display : The display name to be used by user interface programs to identify the service.
- Comment : The description of the service.
- Dependencies : List of names of services or load ordering groups that the system must start before this service.
To use under Service Control Manager
This option is used when application run under the control of the Windows Service NT Control Manager. Don't use this option directly, the install option will use it when you create your service.
LeCouteauSuisse -Service -Name:<ServiceName>
To install service
LeCouteauSuisse -Install -Name:<ServiceName> [-Account:LocalService|LocalSystem|NetworkService|User] [-UserName:<myUser>] [-Password:<myPassword>] [-StartMode:Automatic|Manual|Disabled] [-Display:<displayName>] [-Comment:<displayComment>] [-Dependencies:<serviceName>[,<serviceName>]]
To remove service
LeCouteauSuisse -Remove -Name:<ServiceName>
To use console mode
LeCouteauSuisse -Console -Name:<ServiceName>
To show help
LeCouteauSuisse -Help