Sc config Command in Windows Server 2008

In this article I am going to explain about sc config command in windows server 2008 operating system.
  • 3116

Introduction

The operating system Sc config command is used to modifies the value of a service's entries in the registry and in the Service Control Manager database.

Syntax of Sc config
command

sc [<ServerName>] config [<ServiceName>] [type= {own | share | kernel | filesys | rec | adapt | interact type= {own | share}}] [start= {boot | system | auto | demand | disabled | delayed-auto}] [error= {normal | severe | critical | ignore}] [binpath= <BinaryPathName>] [group= <LoadOrderGroup>] [tag= {yes | no}] [depend= <dependencies>] [obj= {<AccountName> | <ObjectName>}] [displayname= <DisplayName>] [password= <Password>]


Parameters in Sc config command

It contains following parameter, which is given below:
 
Parameter Description
<ServerName> It specifies the name of the remote server, where service is installed.
<ServiceName> It specifies the service name.
type= {own | share | kernel | filesys | rec | adapt | interact type= {own | share}} It specifies the service types:
own: It specifies a service that runs in it own process.
share: It specifies a service that runs in its own process.
kernel: It specifies a driver.
filesys: It specifies a file system driver.
adapt: It specifies an adapter driver that identifies hardware devices such as keyboards, mice, and disk drives.
start= {boot | system | auto | demand | disabled | delayed-auto} It specifies the start type of the service.
error= {normal | severe | critical | ignore} It specifies the severity of the error if the service fails to start at boot time.
binpath= <BinaryPathName> It specifies a path of the service binary file.
group= <LoadOrderGroup> It specifies the name of the group of which this service is a member
tag= {yes | no} It specifies whether or not to obtain a TagID from the CreateService call.
depend= <dependencies> It specifies the names of services or groups that must start before this service.
obj= {<AccountName> | <ObjectName>} It specifies a name of an account in which a service will run, or specifies a name of the Windows driver object in which the driver will run.
displayname= <DisplayName> It specifies a descriptive name for identifying the service in user interface programs.
password= <Password> It specifies the password.

Example of Sc config command

sc config NewService binpath= "ntsd -d c:\NewServ.exe"


Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.