@ Echo off
Rem sets the service of the XP System
Common functions of REM SC .exe:
Rem 1. Change the service startup status.
Rem 2. Delete the Service (otherwise it is not recommended to delete any system service, especially the basic service with caution)
Rem 3. Stop or start a service (the function is similar to net stop/start, but more services are faster and can be stopped)
Rem command format:
Rem modifies the command line format of the Service Startup type to (note that START = is followed by a space)
Rem SC config service name start = auto (set service to auto start)
Rem SC config service name start = demand (set service to manual start)
Rem SC config service name start = disabled (set service to disabled)
The command line format of REM stop/start service is
Rem SC stop/start service name
Rem note: the service name can be queried by double-clicking the corresponding service display name in the control panel> Administrative Tools> service.
Rem example:
Rem sets Remote Registry Service to manual in the format
Rem SC config RemoteRegistry start = demand
Rem is set to disabled in the format
Rem SC config RemoteRegistry start = disabled
The format of the REM stop service is
Rem SC stop RemoteRegistry
Rem batch processing below sets the service status of the XP System
Rem starts to set the begin service of the XP system ....
Rem the following system services are set to disabled ....
Rem Notifies selected users and computers about system management-level alarms
SC config Alerter start = disabled
Rem ClipBook enables the "Clipboard viewer" to store information and share it with remote computers. If this service ends, the clipboard viewer cannot share information with a remote computer. If this service is disabled, any service dependent on it cannot be started.
SC config clipsrv start = disabled
Rem Error Reporting Service services and applicationsProgramAllows error reporting when running in a non-standard environment.
SC config ersvc start = disabled
Rem help and support enables the Help and Support Center on this computer. If the service is stopped, the Help and Support Center will be unavailable. If the service is disabled, any service directly dependent on this service cannot be started.
SC config helpsvc start = disabled
Rem Human Interface Device Access enables generic input access to the Smart interface device (HID), which activates and saves predefined hot buttons on the keyboard, remote control, and other multimedia devices. If this service is terminated, the hot button controlled by this service will no longer run. If this service is disabled, any service dependent on it cannot be started.
SC config hidserv start = disabled
Rem imapi CD-Burning COM Service uses Image Mastering Applications Programming Interface (imapi) to manage CD recording. If you stop this service, this computer will not be able to record CD. If the service is disabled, any service that relies on it cannot be started.
SC config imapiservice start = disabled
The index content and attributes of files on the local and remote computers of the REM Indexing Service. Quick file access is provided through flexible query languages.
SC config cisvc start = disabled
Rem messenger transmits the net send and Alerter service messages between the client and the server. This service has nothing to do with Windows Messenger. If the service is stopped, Alerter messages are not transmitted. If the service is disabled, any service directly dependent on this service cannot be started.
SC config messenger start = disabled
Rem mnetwork DDE provides network transmission and security for programs running on the same computer or on different computers. If this service is terminated, DDE transmission and security will be unavailable. If this service is disabled, any service dependent on it cannot be started.
SC config NETDDE start = disabled
Rem mnetwork DDE Manages Dynamic Data Exchange (DDE) network sharing. If this service is terminated, the DDE network sharing will be unavailable. If this service is disabled, any service dependent on it cannot be started.
SC config NetDDEdsdm start = disabled
Rem remote registry allows remote users to modify registry settings on this computer. If this service is terminated, only users on this computer can modify the registry. If this service is disabled, any service dependent on it cannot be started.
SC config RemoteRegistry start = disabled
Rem Routing and Remote Access provides routing services for enterprises in LAN and WAN environments.
SC config RemoteAccess start = disabled
Rem System Restore Service performs system restoration. To stop the service, disable System Restore from the "System Restore" tab in "My PC ".
SC config srservice start = disabled
Rem Telnet allows remote users to log on to this computer and run programs, and supports multiple TCP/IP Telnet clients, including UNIX and Windows-based computers. If the service is stopped, remote users cannot access the program. Any service that relies on it directly fails to start.
SC config tintsvr start = disabled
Rem Wireless Zero Configuration provides automatic configuration for your 802.11 Adapter
REM can be enabled with a 802.11 adapter Nic
SC config WZCSVC start = disabled
Rem the following system services are set to run automatically ....
Rem Automatic Updates allows you to download and install Windows updates. If this service is disabled, the computer cannot use the automatic update function of the Windows Update Website.
REM can be set to automatic or disabled
Rem Auto/demand/disabled
SC config wuauserv start = disabled
Rem Computer Browser maintains the update list of computers on the network and provides the list to the computer for specified browsing. If the service is stopped, the list is not updated or maintained. If the service is disabled, any service directly dependent on this service cannot be started.
SC config browser start = auto
Rem Cryptographic Services provides three management services: The Catalog Database Service, which determines the signatures of Windows files; the Protected Root Service, which adds and deletes certificates of trusted root certificate institutions from this computer; and key service, which helps you register this computer to obtain a certificate. If this service is terminated, these management services cannot run properly. If this service is disabled, any service dependent on it cannot be started.
Rem Auto/demand
SC config cryptsvc start = auto
Rem provides the Loading Function for DCOM server process launcher (DCOM Service)
Rem Auto/demand
SC config dcomlaunch start = auto
The rem dhcp client manages network configurations by registering and changing IP addresses and DNS names.
Rem Auto/demand
SC config DHCP start = auto
Rem Distributed Link Tracking Client maintains a link between NTFS files in the computer or between computers in the network domain.
Rem Auto/demand
SC config TrkWks start = auto
The rem dns Client resolves and caches Domain Name System (DNS) names for this computer. If the service is stopped, the computer cannot resolve the DNS name and locate the Active Directory domain controller. If this service is disabled, any service explicitly dependent on it cannot be started.
Rem Auto/demand
SC config Dnscache start = auto
Rem Event Log enables viewing event log messages issued by Windows-based programs and components in the event viewer. This service cannot be terminated.
SC config EventLog start = auto
Rem IPSec Services manages IP Security Policies and starts ISAKMP/Oakley (IKE) and IP Security drivers.
Rem Auto/demand
SC config PolicyAgent start = auto
Rem Logical Disk Manager monitors and monitors new hard drive and sends volume information to the Logical Disk Manager Management Service for configuration. If the service is terminated, the dynamic disk status and configuration information will expire. If this service is disabled, any service dependent on it cannot be started.
Rem Auto/demand
SC config dmserver start = auto
Rem Plug and Play enables computers to identify and adapt to hardware changes with little or no user input. Terminating or disabling this service may cause system instability.
SC config plugplay start = auto
Rem Print Spooler loads the file into the memory for later printing.
Rem Auto/demand/disabled can be disabled if no printing is available
SC config Spooler start = disabled
Rem protected storage provides protective storage for sensitive data (such as private keys) to prevent unauthorized services, processes, or unauthorized access to them.
Rem Auto/demand
SC config protectedstorage start = auto
Rem Remote Procedure Call (RPC) provides the endpoint mapper and other RPC services.
SC config RPCSS start = auto
Rem Secondary Logon enables the enable process under the replacement credential. If this service is terminated, this type of Logon access is unavailable. If this service is disabled, any service dependent on it cannot be started.
Rem Auto/demand/disabled
SC config seclogon start = auto
Rem Security Accounts Manager stores security information of local user accounts.
SC config SamSs start = auto
Rem security center monitors system security settings and configurations.
Rem Auto/demand
SC config wscsvc start = auto
Rem server allows this computer to share files, prints, and named pipes over the network. If the service is stopped, these functions are unavailable. If the service is disabled, any service directly dependent on this service cannot be started.
SC config LanmanServer start = auto
Rem Shell Hardware Detection provides notifications for automatic playback of hardware events.
Rem Auto/demand
SC config ShellHWDetection start = auto
Rem System Event Notification tracks system events, such as logon to Windows, network, and power events. Notify the COM + Event System subscriber of these events )".
SC config sens start = auto
Rem task sched allows you to configure and schedule automatic tasks on this computer. If this service is terminated, these tasks cannot be run on schedule. If this service is disabled, any service dependent on it cannot be started.
SC config schedule start = auto
Rem TCP/IP NetBIOS Helper supports "NetBIOS on TCP/IP" and NetBIOS name resolution.
Rem Auto/demand/disabled
SC config LmHosts start = demand
Rem themes provides users with theme management experience.
Rem Auto/demand
SC config themes start = demand
Rem WebClient enables Windows-based programs to create, access, and modify Internet-based files. If the service is terminated, these functions will be lost. If this service is disabled, any service dependent on it cannot be started.
Rem Auto/demand
SC config WebClient start = demand
Rem Windows Audio manages Windows-based audio devices. If this service is terminated, the audio device and its sound effects will not work properly. If this service is disabled, any service dependent on it cannot be started.
SC config audiosrv start = auto
Rem indows Firewall/Internet Connection Sharing (ICS) provides network address translation, addressing, name resolution, and/or intrusion protection services for home and small office networks.
SC config sharedaccess start = auto
Rem Windows Management Instrumentation provides a common interface and object mode to access management information about operating systems, devices, applications, and services. If this service is terminated, most Windows-based software will not work properly. If this service is disabled, any service dependent on it cannot be started.
SC config Winmgmt start = auto
Rem Windows Time maintains the time and date synchronization between all clients and servers on the network. If the service is stopped, synchronization between the time and date is unavailable. If this service is disabled, any service explicitly dependent on it cannot be started.
SC config w32time start = auto
Rem workstation creates and maintains client network connections to remote services. If the service is stopped, these connections are unavailable. If the service is disabled, any service directly dependent on this service cannot be started.
SC config lanmanworkstation start = auto
Rem the following system services are set to the manual status ....
The REM Application Layer Gateway Service provides support for third-party protocol plug-ins for Internet Connection Sharing and Windows Firewall.
SC config ALG start = demand
Rem Application Management provides software installation services, such as dispatch, release, and deletion.
SC config appmgmt start = demand
The rem asp. NET Status Service supports non-process session statuses for ASP. NET. If the service is stopped, requests outside the process will not be processed. If this service is disabled, any service explicitly dependent on it cannot be started.
SC config aspnet_state start = demand
Rem Background Intelligent Transfer Service transmits data between the client and the server in the background. If bits is disabled, some functions, such as Windows Update, cannot run normally.
SC config bits start = demand
Rem COM + event system supports the System Event Notification Service (SENS), which provides the automatic distribution function for subscribing to Component Object Model (COM) component events. If this service is stopped, sens will be disabled and no logon or logout notifications will be provided. If this service is disabled, other services explicitly dependent on this service cannot be started.
SC config EventSystem start = demand
Rem COM + system application manages configuration and Tracking Based on COM + components. If the service is stopped, most COM +-based components cannot work normally. If this service is disabled, any service explicitly dependent on it cannot be started.
SC config comsysapp start = demand
Rem Distributed Transaction Coordinator coordinates transactions across multiple databases, message queues, file systems, and other resource managers. If you stop this service, these transactions will not occur. If this service is disabled, other services explicitly dependent on this service cannot be started.
SC config MSDTC start = demand
Rem Fast User Switching Compatibility manages applications that require assistance under multiple users.
SC config FastUserSwitchingCompatibility start = demand
Rem http ssl this service uses Secure Sockets Layer (SSL) to implement Secure Hypertext Transfer Protocol (https) for HTTP Services ). If this service is disabled, any service dependent on it cannot be started.
SC config httpfilter start = demand
Rem Logical Disk Manager Administrative Service configures hard drive and volume. This service is only run for configuration processing and then terminated.
SC config dmadmin start = demand
Rem MS Software Shadow Copy Provider manages Software Shadow Copies taken by the shadow replication service. If the service is stopped, the Software Shadow Copy cannot be managed. If the service is disabled, any service dependent on it cannot be started.
SC config swprv start = demand
Rem Net Logon supports the pass-through account logon authentication event on the computer on the network.
SC config netlogon start = demand
Rem NetMeeting Remote Desktop Sharing allows authorized users to remotely access this computer using NetMeeting across enterprise intranets. If this service is disabled, the remote desktop service is unavailable. If this service is disabled, any service dependent on it cannot be started.
SC config mnmsrvc start = demand
Rem Network Connections Manages objects in the "Network and dial-up connections" folder, where you can view LAN and remote connections.
SC config netman start = demand
Rem Network Location Awareness (NLA) collects and stores network configuration and location information, and notifies the application when the information is changed.
SC config NLA start = demand
Rem Network Provisioning Service provides domain-based xml configuration file management for the automatic network.
SC config xmlprov start = demand
Rem nt lm Security Support Provider provides a security mechanism for Remote Procedure Call (RPC) programs that use transport protocols rather than named pipelines.
SC config NtLmSsp start = demand
Rem Performance Logs and alerts Collects performance data from local or remote computers based on pre-configured schedule parameters, and then writes this data into logs or triggers alerts. If this service is terminated, no performance information is collected. If this service is disabled, any service dependent on it cannot be started.
SC config SysmonLog start = demand
Rem Portable Media Serial Number Service retrieves the serial number of any portable media player connected to this computer. If this service is stopped, protected content might not be down loaded to the device.
SC config WmdmPmSN start = demand
Rem QoS RSVP provides network signal and local communication control installation for quality service (QoS) dependent programs and control applications.
SC config RSVP start = demand
Rem Remote Access Auto Connection Manager creates a connection to the remote network whenever a program references a remote DNS or NetBIOS name or address.
SC config RasAuto start = demand
Rem Remote Access Connection Manager creates a network connection.
SC config RASMAN start = demand
Rem Remote Desktop Help Session Manager manages and controls Remote Assistance. If the service is terminated, remote assistance will become unavailable. Before terminating this service, see the "dependency" tab on the "properties" dialog box.
SC config RDSessMgr start = demand
Rem Remote Procedure Call (RPC) Locator manages the RPC Name Service database.
SC config RpcLocator start = demand
Rem Removable Storage
SC config Ntmssvc start = demand
Rem Smart Card manages read access to smart cards from this computer. If the service is terminated, the computer cannot read the smart card. If this service is disabled, any service dependent on it cannot be started.
SC config SCardSvr start = demand
Rem SSDP Discovery Service starts the discovery of UPnP devices on your home network.
SC config ssdpsrv start = demand
Rem telephony supports TAPI to allow programs to control local computers, servers, telephone devices on the LAN, and IP-based voice connections.
SC config tapisrv start = demand
Rem Terminal Services allows multiple users to connect to and control a machine and display desktops and applications on a remote computer. This is the infrastructure of Remote Desktop (including the Administrator's Remote Desktop), quick user conversion, remote assistance, and terminal servers.
SC config termservice start = demand
Rem uninterruptible power supply manages the uninterruptible power supply (UPS) that is connected to the computer ).
SC config ups start = demand
Rem Universal Plug and Play Device Host provides support for generic plug-and-play devices.
SC config upnphost start = demand
Rem Volume Shadow Copy manages and executes shadow copies for backup and other purposes. If this service is terminated, the backup will not be shadow copied, And the backup will fail. If this service is disabled, any service dependent on it cannot be started.
SC config VSS start = demand
Rem Windows Image Acquisition (WIA) provides image capture for scanners and cameras.
SC config stisvc start = demand
Rem Windows Installer adds, modifies, and deletes applications provided by software packages that use Windows Installer (*. MSI. If this service is disabled, any service fully dependent on it will not be started.
SC config msiserver start = demand
Rem Windows Management Instrumentation Driver Extensions exchanges system management information with drivers.
SC config WMI start = demand
Rem WMI Performance Adapter provides performance library information from the WMI hiperf provider.
SC config wmiApSrv start = demand