farmnas.blogg.se

Scriptcase sc exit form
Scriptcase sc exit form












This is evidenced by the STOP_PENDING state (which means that the service is in the process of winding down) returned in the screenshot above. Notice that the SC command will simply make a request for the service to stop and return immediately, before the service has actually stopped. Be sure to enclose the name in quotes if it contains a space!įor example, to stop the Print Spooler service (named “Spooler”), run:

#SCRIPTCASE SC EXIT FORM WINDOWS#

To stop a windows service from an elevated DOS prompt, run: QueryLock-Queries the LockStatus for the SCManager Database The following commands don't require a service name:īoot-(ok | bad) Indicates whether the last boot shouldīe saved as the last-known-good boot configuration GetKeyName-Gets the ServiceKeyName for a service.ĮnumDepend-Enumerates Service Dependencies. GetDisplayName-Gets the DisplayName for a service. Preferrednode-Sets the preferred NUMA node of a service. Triggerinfo-Configures the trigger parameters of a service. Showsid-Displays the service SID string corresponding to Sdset-Sets a service's security descriptor. Sdshow-Displays a service's security descriptor. (adds it to the registry).Ĭontrol-Sends a control to a service. Qpreferrednode-Queries the preferred NUMA node of a service.ĭelete-Deletes a service (from the registry).Ĭreate-Creates a service. Qtriggerinfo-Queries the trigger parameters of a service. Qprivs-Queries the required privileges of a service. Qsidtype-Queries the service SID type of a service. Qfailureflag-Queries the failure actions flag of a service. Qfailure-Queries the actions taken by a service upon failure. Qdescription-Queries the description for a service. Qc-Queries the configuration information for a service. Privs-Changes the required privileges of a service. Sidtype-Changes the service SID type of a service. Stop-Sends a STOP request to a service.Ĭonfig-Changes the configuration of a service (persistent).ĭescription-Changes the description of a service.įailure-Changes the actions taken by a service upon failure.įailureflag-Changes the failure actions flag of a service. Interrogate-Sends an INTERROGATE control request to a service.Ĭontinue-Sends a CONTINUE control request to a service. Pause-Sends a PAUSE control request to a service. Queryex-Queries the extended status for a service, or Query-Queries the status for a service, orĮnumerates the status for types of services. SC is a command line program used for communicating with theįurther help on commands can be obtained by typing: "sc " Type SC at a command prompt to see the extensive set of options available: Enter Microsoft’s SC.EXE – a versatile command-line utility built into Windows that can help you start, stop, restart or configure any Windows Service. While the useful NET.EXE utility is great for starting an stopping windows services, it cannot do much beyond that.












Scriptcase sc exit form