Currently sc query shows service name, display name and other attributes of the services installed on my box. However it does not tell me what the "log on as" setting is. How can I get this information using the command line.
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
|
C:\>sc qc messenger
[SC] GetServiceConfig SUCCESS
SERVICE_NAME: messenger
TYPE : 20 WIN32_SHARE_PROCESS
START_TYPE : 4 DISABLED
ERROR_CONTROL : 1 NORMAL
BINARY_PATH_NAME : C:\WINDOWS\system32\svchost.exe -k netsvcs
LOAD_ORDER_GROUP :
TAG : 0
DISPLAY_NAME : Messenger
DEPENDENCIES : LanmanWorkstation
: NetBIOS
: PlugPlay
: RpcSS
SERVICE_START_NAME : LocalSystem
|
|||
|
|
|
You can use "WMIC" (WMI Command Line Interface) for this:
StartName LocalSystem Here's an example for a different service:
StartName NT AUTHORITY\NetworkService |
|||
|
|