Contents
English (United Kingdom)French (Fr)Deutsch (DE-CH-AT)
Search
Login
Who Is Online?
We have 136 guests online
Navigation
Home Free Software Command line utilities ServiceExe - Install and run applications as Windows services - User credentials
Most Recent
Featured Articles
Joomla 1.5 Featured Articles
Navigation
Home Free Software Command line utilities ServiceExe - Install and run applications as Windows services - User credentials
English (United Kingdom)French (Fr)Deutsch (DE-CH-AT)
ServiceExe - Install and run applications as Windows services - User credentials E-mail
User Rating: / 42
PoorBest 
Free Software - Command line utilities
Written by Thomas   
Thursday, 05 February 2009 17:22
Article Index
ServiceExe - Install and run applications as Windows services
License
Installation
The configuration file
Example configuration file
Configuration: The [General] section
Configuration: Process task sections
Embedded environment variables
Command line parameters
User credentials
Process logging
Common pitfalls
All Pages

 

ServiceExe accepts user credentials as command line parameters with the /U: and /P: parameters.

/U:<domain\>username

Specifies the user name for the service to run as. If the user is part of a domain the domain's name must go in front of the user name. No white space is allowed between the /U: parameter and the domain/user name. If the given user does not have the right to log on as a Windows service yet this right is automatically given to him. Windows user names are not case-sensitive.

If /U: is provided a /P: parameter must be provided too. ServiceExe is not going to ask for a password if no /P: parameter exists. However, if no /P: parameter is given the password can still be entered in the Windows Services Panel later. Incorrect user credentials will fail to start the Windows service.

The /U: as well as the /P: paramer is ignored when the application is run in test mode (-console or -debug). In test mode, the applcation always runs under the current user account but does not report an error. This is so that as little as possible in the command line needs to be changed for switching between test mode and production mode.

/P:password

The password for the user name provided with the /U: parameter. Windows passwords are case-sensitive.

If a password is specified with the /P: parameter but no /U: parameter exists the /P: parameter is ignored.

Examples:

ServiceExe.exe -console ServiceExeTest.ini /S /A /U:username /P:password

Runs the application specified in the key 'ApplicationName' of the configuration file ServiceExeTest.ini with the credentials of the user currently logged on (-console). The application is started immediately, but not because of the /S parameter but rather because of -console. The command line parameters /S, /A, /U:, and /P: are entirely ignored.

ServiceExe.exe -install ServiceExeTest.ini /S /A /U:username /P:password

Installs the application specified in the key 'ApplicationName' of the configuration file ServiceExeTest.ini as a Windows service (-install). Before it starts the service (/S) with the credentials of user 'user' (/U: and /P:) ServiceExe ensures that the user has the right to log on as a Windows service. The service is marked to start up automatically after a system reboot (/A).

 

Download ServiceExe.zip (0.11 MiB = 108.4 KiB = 111,041 bytes)

 



Last Updated on Thursday, 05 July 2012 13:25
 
You need to login or register to post comments.
Discuss this item on the forums. (0 posts)
Discuss (0 posts)