Hallo zusammen,
ich suche nach einer Möglichkeit eine exe-Datei als Dienst auf nem Windows Server 2003/2008 laufen zu lassen. Kennt jemand nen Weg, den er vielleicht sogar schon getestet hat?
Hintergrund ist folgender: Ich möchte auch wenn niemand am Server angemeldet ist, Werte übers Netzwerk in eine Datenbank schreiben lassen und das geht nur wenn diese exe-Datei ausgeführt wird und ich denke der einfachste Weg ist der über die Windows Dienste - oder hat jemand eine ganz andere Idee?
Freue mich über jeden Hinweis.
MfG
m3ta
Seite 1 von 1
Wie Führe Ich Eine Exe Datei Als Dienst Aus?
Anzeige
#2
geschrieben 15. April 2010 - 19:41
Ich gebe dir einfach mal einen Link zu einem uraltem Tool, mit dem sollte es intuitiv möglich sein. Mit den Boardmitteln ist es mir persönlich zu kompliziert, zumindest kompliziert genug, als das ich es verständlich erklären könnte...
#3
geschrieben 15. April 2010 - 19:42
Und dieses Tool lässt sich problemlos auch unter Server 2003/2008 benutzen ?
#4
geschrieben 15. April 2010 - 19:53
Also Server 2003 habe ich damit schon bearbeitet. Zu 2008 kann ich nichts sagen, gehe aber davon aus, dass es funktioniert, zumindest lokal. Ist ja letztlich ein NT-System...
#5
geschrieben 15. April 2010 - 20:37
Okay, dann bedanke ich mal recht herzlich & werde mich dann Morgen nochmal zu Wort melden !
#7
geschrieben 19. April 2010 - 09:38
Hallo zusammen,
die Variante mit dem alten Tool funktioniert leider garnicht. Habe mehrere Varianten ausprobiert aber leider ohne Erfolg. Danke trotzdem für die Idee.
Variante zwei kann ich leider nicht nutzen, weil ich nur 2008 Server habe und das benötigte Paket für 2003 nur verfügbar ist. Habe da leider falsch geposetet ! Sorry, aber Danke für die Idee!
Gibt es noch andere Ideen?
konform mit Server 2008 gehst du mit dem SC Komando.
http://support.microsoft.com/kb/251192
SC Commands:
query-----------Queries the status for a service, or enumerates the status for types of services.
queryex---------Queries the extended status for a service, or enumerates the status for types of services.
start-----------Starts a service.
pause-----------Sends a PAUSE control request to a service.
interrogate-----Sends an INTERROGATE control request to a service.
continue--------Sends a CONTINUE control request to a service.
stop------------Sends a STOP request to a service.
config----------Changes the configuration of a service (persistant).
description-----Changes the description of a service.
failure---------Changes the actions taken by a service upon failure.
qc--------------Queries the configuration information for a service.
qdescription----Queries the description for a service.
qfailure--------Queries the actions taken by a service upon failure.
delete----------Deletes a service (from the registry).
create----------Creates a service. (adds it to the registry).
control---------Sends a control to a service.
sdshow----------Displays a service's security descriptor.
sdset-----------Sets a service's security descriptor.
GetDisplayName--Gets the DisplayName for a service.
GetKeyName------Gets the ServiceKeyName for a service.
EnumDepend------Enumerates Service Dependencies.
To create a service, simply use
<path>sc.exe create "Service Name" binPath= "C:Your Program.exe"
Funktioniert gut - nur für mich noch nicht des Rätsels Lösung!
die Variante mit dem alten Tool funktioniert leider garnicht. Habe mehrere Varianten ausprobiert aber leider ohne Erfolg. Danke trotzdem für die Idee.
Variante zwei kann ich leider nicht nutzen, weil ich nur 2008 Server habe und das benötigte Paket für 2003 nur verfügbar ist. Habe da leider falsch geposetet ! Sorry, aber Danke für die Idee!
Gibt es noch andere Ideen?
konform mit Server 2008 gehst du mit dem SC Komando.
http://support.microsoft.com/kb/251192
SC Commands:
query-----------Queries the status for a service, or enumerates the status for types of services.
queryex---------Queries the extended status for a service, or enumerates the status for types of services.
start-----------Starts a service.
pause-----------Sends a PAUSE control request to a service.
interrogate-----Sends an INTERROGATE control request to a service.
continue--------Sends a CONTINUE control request to a service.
stop------------Sends a STOP request to a service.
config----------Changes the configuration of a service (persistant).
description-----Changes the description of a service.
failure---------Changes the actions taken by a service upon failure.
qc--------------Queries the configuration information for a service.
qdescription----Queries the description for a service.
qfailure--------Queries the actions taken by a service upon failure.
delete----------Deletes a service (from the registry).
create----------Creates a service. (adds it to the registry).
control---------Sends a control to a service.
sdshow----------Displays a service's security descriptor.
sdset-----------Sets a service's security descriptor.
GetDisplayName--Gets the DisplayName for a service.
GetKeyName------Gets the ServiceKeyName for a service.
EnumDepend------Enumerates Service Dependencies.
To create a service, simply use
<path>sc.exe create "Service Name" binPath= "C:Your Program.exe"
Funktioniert gut - nur für mich noch nicht des Rätsels Lösung!
Thema verteilen:
Seite 1 von 1