Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Sun, 25 Nov 2001 21:57:29 +0100 From: "Gerrit P. Haase" X-Mailer: The Bat! (v1.53t) Business Reply-To: "Gerrit P. Haase" Organization: Esse keine toten Tiere X-Priority: 3 (Normal) Message-ID: <11487331716.20011125215729@familiehaase.de> To: swamp-dog AT ntlworld DOT com CC: cygwin AT cygwin DOT com Subject: Re: cygqrysrv In-Reply-To: <1006719960009516@firemail.de> References: <1006719960009516 AT firemail DOT de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hallo Katherina, Am 2001-11-25 um 21:33 schriebst du: >> Usage: cygqrysrv >>Cool, afaik there is nothing like this included with windows or the resource kit. > ... apropos sc.exe (NT4 resource kit/1996) ? Ok., more cool, I have it;) Guy, need a copy? $ sc.exe GetKeyName "O&O Defrag 2000" GetServiceKeyName Success! Name = OOD2000 Now I'm only missing one, how to get a list of ALL services with name & displayed name? $ sc.exe DESCRIPTION: SC is a command line program used for communicating with the NT Service Controller and services. USAGE: sc [command] [service name] ... The option has the form "\\ServerName" Further help on commands can be obtained by typing: "sc [command]" Commands: query-----------Queries the 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). qc--------------Queries the configuration information for a service. delete----------Deletes a service (from the registry). create----------Creates a service. (adds it to the registry). control---------Sends a control to a service. GetDisplayName--Gets the DisplayName for a service. GetKeyName------Gets the ServiceKeyName for a service. EnumDepend------Enumerates Service Dependencies. The following commands don't require a service name: sc