2015年12月18日星期五

Windows 10 added two undocumented service type: userown, usershare

sc.exe Usage:
...
type= <own|share|interact|kernel|filesys|rec|adapt|userown|usershare>
...

The strange things is, service created as "userown" type will not show in Service Manager, just show in Registry Editor.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
C:\Users\q\Downloads>sc create TrustedInstaller_Test binPath= "c:\windows\system32\cmd.exe /K start" type= userown obj= TrustedInstaller
[SC] CreateService SUCCESS
C:\Users\q\Downloads>sc qc TrustedInstaller_Test
[SC] QueryServiceConfig SUCCESS
SERVICE_NAME: TrustedInstaller_Test
        TYPE               : 50  USER_OWN_PROCESS TEMPLATE
        START_TYPE         : 3   DEMAND_START
        ERROR_CONTROL      : 1   NORMAL
        BINARY_PATH_NAME   : c:\windows\system32\cmd.exe /K start
        LOAD_ORDER_GROUP   :
        TAG                : 0
        DISPLAY_NAME       : TrustedInstaller_Test
        DEPENDENCIES       :
        SERVICE_START_NAME :

The  "USER_OWN_PROCESS TEMPLATE" is not documented.

没有评论:

发表评论