????? ????? ???? Windows ???????? Sc.exe?

?????? ????????? ?????? ?????????
???? ???????: 251192 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

??????

?????? ???? ??????? ?? ??? ??????? ???????? ?? ????? ????? ??????? ?????? SC ?(Sc.exe) ??????? ?? ????? ???????.

??? ????? ?? ??? ????? ??????? ???????? Netsvc.exe ?Instsrv.exe ?????? ???? ??????? ??? ???? ??????? ????? ?? ???? ?? ????? ???????? ??????? ????? ???? ??????? ?? ????.

?????? ????? ?????? Srvinstw.exe ????? ????? ???????? ???????? (GUI) ???????? ?????? ??????? ?? ????. ??? ????? ?????? Srvinstw.exe ???? ????? ??? ???????.

??????? ????

????? ??????? ?????? Sc.exe ???????? ??? ????? ??????? ????? ??????? Windows. ????? ?????? Sc.exe? ???? ??? ??????? ?? "????? ???????"? ???????? ?? ????? ????? ????? ????????? (API) ?????? ?????? Windows. ????? ????? ???????? ???? ??????? ???????? ?? ??? ???????. ????? ?????? Sc.exe ????? ???? ???? ?????? ???????? ????? ??????? ?? ???? ???? ??????. ????? ?? ?????? ????? ??????? ????? ??? ???? ????????? ?????? ???? ????? ??????? ????? API ?????? ?? ??? ???? ???? ?????? ??? ???? ????????? ??????.

????? ?? ?????? Sc.exe ????? ??????? ??????? ??? ????? ?? ????? API ?????? ??????? ???????? ??? ????? ??? ????? ?? ??? ???????. ???????? ?? ??? ?? ????? ????? ?????? ?????? ??????? ?????? ?? ??????? ?? ????? ??? ????? ?????? "????? ?????? ???????". ??? ???? ????? ????? ?????? ?? ???? ????? ????????? ?????? ?? ????? ?? ????? ????? ???? ????????? ?????? "????? ?????? ???????" ??? ????? ????? ???????? ?????? ???.

?????? ?????? Sc.exe ???? ?????? ??????:

Syntax1 ?(use Syntax1 to run Sc.exe) (???? ?????? 1 (??????? ???? ?????? 1 ?????? Sc.exe))
sc [Servername] Command Servicename [Optionname= Optionvalue...]? ?(sc ????? [??? ??????] ??? ?????? [??? ??????= ???? ??????...])
Syntax2 ?(use Syntax2 to display help information, except for the query command) (???? ?????? 2 (??????? ???? ?????? 2 ???? ??????? ?????????? ???????? ????? "???????")
sc [Command]?
([?????] sc )

????????

  • Servername (??? ??????)
    ????????. ???? ????????? ?????? ??? ?????? ????? ???? ????? ??????? ??? ???? ??????? ????. ???? ?? ???? ????? ????? ?????? ????? (\) (??? ???? ??????? ??? ??????\\). ?????? ?????? Sc.exe ??? ???? ????????? ??????? ?? ??? ?????? ??? ???????.
  • Command (?????)
    ??? ????????? ?????? ????? sc. ???? ?? ?????? ?? ????? sc ????? ???? ???????? ?????? ??? ???? ????????? ??????. ????? ?????? Sc.exe ??????? ???????:
    Config
    ??????? ?????? ????? ?????? (????).

    Continue
    ??????? ?????? ??? ?????? Continue (???????) ??? ??????.

    Control
    ??????? ?????? ??? ???? ??? ??????.

    Create
    ??????? ?????? ?????? (???????? ??? ?????).

    Delete
    ??????? ???? ?????? (?? ?????).

    EnumDepend
    ??????? ????? ??? ?????? ??????.

    GetDisplayName
    ??????? ?????? ??? ???? DisplayName (??? ?????) ??????.

    GetKeyName
    ??????? ?????? ??? ???? ServiceKeyName (??? ????? ??????) ??????.

    Interrogate
    ??????? ?????? ??? ?????? Interrogate (???????) ??? ??????.

    Pause
    ??????? ?????? ??? ?????? Pause (????? ????) ??? ??????.

    qc
    ????????? ?? ??????? ??????. ?????? ??? ??????? ???????? ???? ???? ???????? "SC QC".

    Query
    ??????? ????????? ?? ???? ??????? ?? ??? ????? ????? ???????. ?????? ??? ??????? ???????? ???? ???? ???????? "SC QUERY" (??????? SC).

    Start
    ??????? ???? ??????

    Stop
    ??????? ?????? ??? Stop (?????) ??? ??????.
  • Servicename (??? ??????)
    ??????? ?????? ????? ???? ?? ?????? ??? ????? ?????? ?? ?????. ???? ?? ??? ????? ?? ??? ????? (???? ?? ???? ?? ????? net start ??? ?????? "?????" ?? "???? ??????". ??????? ?????? Sc.exe ??? ????? ?????? ???????? ?????? ??????? ??????.
  • Optionname (??? ??????)
    ???? ?? ????????? Optionname ?Optionvalue ??????? ????? ??????? ?????? ??????? ??????? ??????????. ???? ??? ?? ???? ????? ??? Optionname ?????? ???????? (=). ????? ????? ????? ?? ??? ?????? ???????? ?????????? ?? ???? ????? ?? ?? ???.
  • Optionvalue (???? ??????)
    ??????? ?????? ???? ??????? ???? ???? Optionname. ???? ????? ???? ????? ??????? ??? Optionname. ?????? ??? ????? ?????? ???????? ????? ??? ???????? ??? ??????? ?? ???.
????? ?????? ?? ??????? ???????? ???????. ???? ?? ??? ???? ?????? ?????? ?????? ??? ???? ????????? ???? ??? ????? ??????? ????.

???? ????? sc create ?????? ????? ?????? ?? ????? ??? ????? ?????? "????? ?????? ???????".

???? ??????
sc [Servername] create Servicename [Optionname= Optionvalue...]??(sc [??? ??????] ????? ??? ?????? [??? ??????= ???? ??????)

????????

  • Servername (??? ??????)
    ????????. ??? ????????? ?????? ??? ?????? ????? ???? ????? ??????? ??? ???? ??????? ????. ???? ?? ???? ????? ????? ?????? ????? (??? ???? ??????? ??? ??????\\). ?????? ?????? SC ??? ???? ????????? ??????? ?? ??? ?????? ??? ???????.
  • Servicename (??? ??????)
    ??????? ?????? ????? ???? ?? ?????? ??? ????? ?????? ?? ?????. ???? ?? ??? ????? ?? ??? ?????? ???? ?? ???? ?? ????? net start ??? ?????? "?????" ?? "???? ??????". ??????? ?????? Sc.exe ??? ????? ?????? ???????? ?????? ??????? ??????.
  • Optionname (??? ??????)
    ???? ?? ????????? Optionname ?Optionvalue ??????? ????? ??????? ?????? ???????? ??????????. ???? ??? ?? ???? ????? ??? Optionname ?????? ???????? (=). ????? ????? ????? ?? ??? ?????? ???????? ?????????? ?? ???? ????? ?? ?? ???. ???? ????? sc query ???????? ?????????:OptionnameOptionvalue
    type=own, share, interact, kernel, filesys
    ??? ?????? ??????? ???????. ?????? Optionvalues (??? ????????) ??????? ????????? ?????? ????? ???????.
    (?????? ?????????? = share)

    start=boot, system, auto, demand, disabled
    ??? ????? ??????. ?????? ??? ???????? ??????? ????????? ?????? ????? ???????.
    (?????? ?????????? = demand)

    error=normal, severe, critical, ignore
    ????? ????? ??? ?? ??? ????? ?????? ????? ????? ???????.
    (?????? ?????????? = normal)

    binPath=(?????)
    ??? ?????? ??? ????? ??????? ??????. ?? ???? ???? ???????? ???? ???????. ??? ????? ??? ???????.

    group=(?????)
    ???? ??? ??? ???????? ???? ???? ??? ?????? ??? ??????? ?????? ???. ???? ????? ????? ????????? ?? ????? ??? ServiceGroupOrder.
    (?????? ?????????? = ?????)

    tag=(?????)
    ?? ???? ????? ??? ??????? ??? ?????? "???"? ???? ?????? Sc.exe ??? TagId (???? ???????) ?? ??????? CreateService? ???? ?? ???? ?????? Sc.exe ???????.
    (?????? ?????????? = ?????)

    depend=(????? ?????? ????????)
    ???? ??? ????? ??????? ?? ????????? ???? ??? ??????? ??? ??? ??????.

    obj=(?????)
    ??? ?????? ???? ??? ????? ?????? ??. ???????? ?????? ???????? ???? ??? ?????? ??? ??? ???? ?????? ????? Windows.
    (?????? ?????????? = LocalSystem)

    DisplayName=(?????)
    ??????? ???? ???? ????????? ?????? ????? ????? ???????? ?????? ??????.

    password=(?????)
    ????? ???? ??????. ????? ?????? ?? ???? ??????? ???? ??? LocalSystem.
Optionvalue (???? ??????)
??????? ?????? ???? ??????? ???? ???? Optionname. ???? ???? Optionname ?????? ??? ????? ?????? ???????. ???? ????? ???? ???????? ??? ??????? ?????? ?????? ????? ???? ??? ?? ????? ????? ?????. ????? ??? ???? ????? ??? ???? OptionValue ?????? ???????? (=).

?????? ???? ????? sc create ?????? ?????? ????? API ?????? ????? CreateService.

?? ?????? ??????? ??? ????? ????? ??? ?????? ???? ???? "NewService" ??? ???? ????????? ???? ???? \\???? ????????? ??????:
sc \\remotecomputer create newservice binpath= c:\nt\system32\newserv.exe
?????? ??????? ?????? ??????? Windows 2000 ?Windows XP ?Windows Server 2003 ?Windows Vista ?Windows Server 2008? ???? binpath ??? C:\Windows\System32\Newserv.exe.

?????? ????????? ??????????? ??? ????? ??? ?????? ????????? WIN32_SHARE_PROCESS ???? ??? ??????? SERVICE_DEMAND_START. ?? ???? ???? ?????? ??? ??????? ???? ??????? ?? ???? ???? LocalSystem.

?? ?????? ??????? ??? ????? ?????? ??? ???? ????????? ?????? ????? ????? ?????? ??? ??? ??????? ???? ?????. ????? ??? ?????? ?? ?????? TDI ??? ???? NetBIOS. ???? ?? ??? ????? ?????? ?????? ?????? ???????? ???????? ??????.
sc create newservice binpath= c:\nt\system32\newserv.exe type= own start= auto depend= "+tdi netbios"
?????? ??????? ?????? ??????? Windows 2000 ?Windows XP ?Windows Server 2003 ?Windows Vista ?Windows Server 2008? ???? binpath ??? C:\Windows\System32\Newserv.exe.

????? ?? ???????? ??? ?????? Sc.exe? ?????? ?????? ????? Sc-dev.txt ??????? ?? "????? ???????". ???? ??? ??????? ?????? Sc.exe ?????? ????.

???????

???? ???????: 251192 - ????? ??? ??????: 16/????? ??????/1429 - ??????: 4.0
????? ???
  • Microsoft Windows NT Server 3.51
  • Microsoft Windows NT Server 4.0 Standard Edition
  • Microsoft Windows NT Server 4.0, Terminal Server Edition
  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional Edition
  • Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
  • Microsoft Windows Server 2003, Datacenter Edition for Itanium-Based Systems
  • Microsoft Windows Server 2003, Datacenter x64 Edition
  • Microsoft Windows Server 2003, Enterprise x64 Edition
  • Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
  • Microsoft Windows Server 2003, Enterprise Edition for Itanium-based Systems
  • Microsoft Windows Server 2003, Standard x64 Edition
  • Microsoft Windows Server 2003, Standard Edition (32-bit x86)
  • Windows Vista Home Basic
  • Windows Vista Home Basic N
  • Windows Vista Home Basic N 64-bit Edition
  • Windows Vista Business
  • Windows Vista Business 64-bit edition
  • Windows Vista Business N
  • Windows Vista Business N 64-bit Edition
  • Windows Vista Home Premium
  • Windows Vista Home Basic 64-bit edition
  • Windows Vista Home Premium 64-bit edition
  • Windows Vista Ultimate
  • Windows Vista Ultimate 64-bit edition
  • Microsoft Windows XP Home Edition
  • Microsoft Windows XP Professional
  • Windows Server 2008 Standard
  • Windows Server 2008 Enterprise
  • Windows Server 2008 Datacenter
????? ??????: 
kbhowto kbexpertiseinter kbinfo KB251192

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com