Kostenlose Software -
Geschrieben von: Thomas
Donnerstag, 05. Februar 2009 um 17:22 Uhr
Seite 10 von 12
ServiceExe accepts user credentials as command line parameters with the /U: and /P: parameters.
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.
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.
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
, um einen Kommentar zu schreiben.