Make good use of command to make Windows 2008 System State Change

Source: Internet
Author: User
Tags command line

As the saying goes, "know each other, win," only fully understand the various state changes in the system, we can tailor a good security defense program, so as to ensure that their system is always safe and stable operation. When checking the state of the system itself, we sometimes need professional tools to help us with this task, but for Windows Server 2008 systems, we can take advantage of the functionality commands that come with the system, and we'll be able to make the Windows Server 2008 the state of each aspect of the system has changed.

1, the transparent system service state changes

Many times, in order for Windows Server 2008 systems to run more efficiently, we often use manual methods to turn off some of the temporarily unavailable system services to save as much valuable system resources as possible, however, because many of the service options in the system are not at all familiar, Modifying the system service manually can cause some inexplicable symptoms of the Windows Server 2008 system to occur; For example, when a friend uses a professional optimization tool to optimize the Windows Server 2008 system, When you find that a printer that used to work is not working properly, how can you quickly tell which system services are changing in the current system? In fact, by using the "SC query" command from the Windows Server 2008 system, we can quickly see the working status of all the services in the corresponding system, and in order to be able to identify the system services that are changing in the working state, we can follow these steps:

First, the normal system service state information is backed up before the local computer system is optimized, and when a service status information backup operation is made, we can click the Start/Program/attachment option in the Windows Server 2008 System desktop in turn, and then the attachment submenu Select the command prompt item, and then right-click the item, perform the run as Administrator command from the pop-up shortcut menu, and switch the System State to DOS command line working status;

Second, at the DOS command prompt, the input string command "sc query >d:\aaa.txt", and when you click Enter, the results of the execution shown in Figure 1 will be returned on the screen, which means that Windows Server 2008 The Service status information of the system is stored in the "d:\aaa.txt" file in the normal working time;

In the future, when we use professional tools to optimize the services of the Windows Server 2008 system, if there is a baffling symptom of the corresponding system, we simply execute the string command "SC query >d:\bbb.txt" at the DOS command prompt. In that way, the optimized system service state information is successfully saved to the "d:\bbb.txt" file;

Below, we continue to execute the string command "FC D:\aaa.txt D:\bbb.txt" in the MS-DOS window to compare "d:\aaa.txt" Files and "D:\bbb.txt" with the FC commands that come with the Windows Server 2008 system What is the difference between the files? By contrast, we can quickly understand which services in the Windows Server 2008 system are changing, causing the system to fail in an inexplicable way. For example, if the printer works correctly before the service is optimized, and after performing the system optimization service operation, if the printer does not work, then we just follow the above operation, we can quickly understand the system's background print service status changes, we just open the corresponding system of Services List window, You find the Print Spooler service and go to the Properties Settings window of the service, and then restart the service to work properly, which will solve the problem that the printer is not working properly.

In addition to using the SC query command to export system service status information, you can do this by using the "net start" command.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.