Inhalt
English (United Kingdom)French (Fr)Deutsch (DE-CH-AT)
Suchen
Login
Wer ist online?
Wir haben 121 Gäste und 6 Benutzer online
Navigation
Home Kostenlose Software Kommandozeilen-Programme ServiceExe - Install and run applications as Windows services - User credentials
Aktuell
Featured Articles
Joomla 1.5 Featured Articles
Navigation
Home Kostenlose Software Kommandozeilen-Programme 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
Benutzerbewertung: / 14
SchwachPerfekt 
Kostenlose Software - Kommandozeilen-Programme
Geschrieben von: Thomas   
Donnerstag, 05. Februar 2009 um 17:22 Uhr
Beitragsseiten
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
Alle Seiten

 

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)

 



Zuletzt aktualisiert am Donnerstag, 05. Juli 2012 um 13:25 Uhr
 
Du musst dich anmelden oder registrieren, um einen Kommentar zu schreiben.
Im Forum diskutieren. (0 posts)
Diskutieren (0 Posts)