Simple and powerful command of Microsoft Windows
2008-09-25 21:06
459 查看
the command is "sc"
DESCRIPTION:
SC is a command line program used for communicating with the
NT Service Controller and services.
USAGE:
sc <server> [command] [service name] <option1> <option2>...
The option <server> 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.
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.
The following commands don't require a service name:
sc <server> <command> <option>
boot------------(ok | bad) Indicates whether the last boot should
be saved as the last-known-good boot configuration
Lock------------Locks the Service Database
QueryLock-------Queries the LockStatus for the SCManager Database
EXAMPLE:
sc start MyService
Would you like to see help for the QUERY and QUERYEX commands? [ y | n ]:
===========================================================
Simple using as below:
sc delete Tomcat
then ,the service called "Tomcat" will be removed from the list.
DESCRIPTION:
SC is a command line program used for communicating with the
NT Service Controller and services.
USAGE:
sc <server> [command] [service name] <option1> <option2>...
The option <server> 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.
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.
The following commands don't require a service name:
sc <server> <command> <option>
boot------------(ok | bad) Indicates whether the last boot should
be saved as the last-known-good boot configuration
Lock------------Locks the Service Database
QueryLock-------Queries the LockStatus for the SCManager Database
EXAMPLE:
sc start MyService
Would you like to see help for the QUERY and QUERYEX commands? [ y | n ]:
===========================================================
Simple using as below:
sc delete Tomcat
then ,the service called "Tomcat" will be removed from the list.
相关文章推荐
- Microsoft will end OEM and shrink-wrapped sales of Windows XP on June 30, 2008
- The Windows SDK team is proud to announce that the RTM release of the Microsoft Windows SDK for Windows Server 2008 and .NET Fra
- Timeout Detection and Recovery of GPUs through (Microsoft Windows imposed time limit (TDR) was exce)
- TookKit-autohotkey_Simple automation of Windows and programs
- TookKit-autohotkey_Simple automation of Windows and programs
- How to set up and test a simple OLEDB Linked Server in Microsoft® SQL Server to allow retrieval of d
- How to install and run Microsoft Windows for free on Linux
- Microsoft Windows Outlook Express and Windows Mail Integer Overflow
- 7 developmnet Project with the 2007 Microsoft Office System and Windows SharePoint 2007翻译(1)-feature
- Debugging Applications for Microsoft .NET and Microsoft Windows: Notes-The Debugging Process
- 扫描线算法的论文《The Intersections for a Set of 2D Segments, and Testing Simple Polygons》的部分翻译
- [转]List of Microsoft patterns and practices for Application Architecture and Design
- Some books recommended, and also a simple introduction of myself.
- Please upgrade the installed version of powershell to the minimum required version and run the command again.
- Microsoft Windows CE 5.0 Board Support Package, Boot Loader, and Kernel Startup Sequence
- Microsoft DOS cmd and command
- Microsoft Windows Vista Beta 2 Order Confirmation and Product Key
- Changes in behavior of the SysPrep and RIPREP tools after you install Windows XP Service Pack 2
- [VS Tip]About "of" command in mini comand window in VS Find Combox