Improve the efficiency of Windows Server 2008 management with the command line

  

A skilled and technically intensive server administrator who tends to abandon a friendly graphical interface and choose to use commands for server management. This not only improves work efficiency, but also enables many tasks that cannot be done under the graphical interface on the command line. This is especially true for server operating systems such as Windows Server 2008, where the use of commands greatly liberates administrators. The author below introduces you to several very useful commands in Server 2008.

1. Server Management with ServerManagerCMD Command

ServerManagerCMD is a command line tool for Server Manager that supports three important operations: adding and removing roles, role services, functions, and Used to display installed roles, role services, features. For specific parameters, you can enter "ServerManagerCMD /?" in the command line to view. Among them, -query, -install, and -remove are the three most commonly used parameters for users to query, install, and delete server roles, role services, and functions. The author below demonstrates the usage of these three parameters.

(1). Query

Enter the command "ServerManagerCMD -query" in the command prompt window, you can view the configuration and functions of the server after you press Enter, thus saving you " The Service Manager's graphical interface switches back and forth. The results are clear: the roles and functions are divided into two groups. The installed roles, role services, and functions are displayed in green and have the [X] logo in front of the item. The unmounted display is white and the front is identified as [ ]. As shown in Figure 1, the server roles installed by the server are: Active Directory Domain Services, DNS Server, Windows Deployment Services, and the installed functional components are: TFTP client, Group Policy Manager. In addition, the installed role services are displayed in a hierarchy below the corresponding roles. (Figure 1)


I also have a technique to share with you: When the server has multiple roles, role services, and functional components installed, if the administrator wants to see if an object is installed. This will be more troublesome. In fact, ServerManagerCMD -query supports the pipeline command "

Copyright © Windows knowledge All Rights Reserved