How does Win2008 Server Core work? 5 steps to learn Win2008 Server Core operation


STEP1 server basic settings

Start with the most basic computer name, user and password modification settings

Change computer name

Instruction format: Netsh renamecomputer[old computer name] /newname [new computer name]

Example: netsh renamecomputer OldName /newname NewName

This command uses the renamecomputer in netsh to change the host computer name from OldName is changed to NewName. To query the computer name, use the command: hostname. Replacing the computer name requires a reboot to reapply the changes, so after the order takes effect, the system will ask if we want to restart. If the answer is yes, enter "y" to let the host reboot.

Change User Password

Instruction Format: net user [user name] [password]

Example: net user Administrator PaSSworD123

The function is to change the password of the Administrator to PaSSworD123. Pay attention to whether the user of the instruction has the permission to modify. In addition to using this command, in Server Core, we can also use Ctrl + Alt + Delete to open the system management menu, there is an option to change the user password, you can also modify the user password after entering.

STEP2 Management Driver

Server Core can support hardware plug and play. When the server wants to add hardware, the system will automatically install the driver in the background. If the corresponding file is not found. We need to install it ourselves and load the file into the system folder through the following three instructions.

View installed drivers in the system

Command format: sc query type= driver

This is sorted in descending order of English subtitles, listing all current systems, all Installed driver name and detailed data, this instruction is mainly through the sc command of the management system service, using its query function, and specifying the type as a driver, you can query related information. The sc command is available on Windows NT 4.0 and 2000 systems, but requires administrator privileges to execute.

Installing Hardware Drivers

Instruction Format: pnputil -a -i[driver inf file path and name]

Example: pnputil -a -i D:\\Driver \\NIC\\Win2K8\ ic2k8.inf

This command copies and installs the nic2k8.inf driver in the specified folder into the system folder. This utility can be used on a variety of Windows Server 2008 platforms.

STEP3 Establishing Basic Network Connections

In Server Core, we also need to establish the basic network configuration of the system in the form of instructions, so that it can play server functions and remote management functions. These settings include IP address settings, specified DNS configuration, and more.

Setting IP Address

Instruction Format: netsh interface ipv4 set address

“[Network Connection Name]” static [IP Address] [Network Shield] [Pre Set the gate channel]

Example: netsh interface ipv4 set address

“Zone connection 1& quoquo; static

This command refers to Use the netsh command to set the online name to the network of zone 1 and set the IPv4 IP address. Specify the static and set the mask and gateway address. Since the system we use is in Chinese, it is necessary to input Chinese in the online name part to be able to execute the command correctly, and the English version of the interface should pay attention to the difference in letter case. Netsh is also a very early instruction. From Windows NT 4.0 and later, the network can be set through this command.

Setting DNS Server Address

Format: netsh interface set dnsserver

“[network connection name]” static [IP address]

Example: netsh interface set dnsserver

<quo;regional connection 1& quoquo; static

The DNS server address specified by netsh is, which is the same as the previously mentioned set IP address. The online name here also needs to match the name in the system.

Adding a computer to an AD domain

Format: netdom join [computer name] /domain:[full domain name] /

usero:[local manager Account] /passwordo:[Local Administrator Password] /

userd:[Domain User Account] /passwordd:[Domain User Password]

Example: netdom join Win2K8 / /usero:Administrator

/passwordo:PaSSw0rD123 /userd:ithome2k8 /password:au4a83

This is a command that is only available in Windows Server 2008. Many parameters are input. It should be noted that it is easy to operate errors. For example, the domain user password parameter is passwordd, and the local user's password is passwordo. Be careful not to make a mistake. If it fails after execution, the system will also display prompt data, displaying an error message, such as a local account password error message.

STEP4 opens the port number for remote management

Unlike previous Windows settings, the 2008 firewall and many network functions, the default values ​​are off, and in Server Core, we need Enter instructions to gradually open access to the required features.

Open connection port

Command format: netsh firewall set portopening [communication protocol] [port number]

Example: netsh firewall set portopening TCP 8080

This is done via the netsh command, which allows the TCP protocol to use the port number 8080 through the firewall. You can use this to allow many network services such as remote management.

Setting Remote Desktop Connection

To allow other computers to log in to the Server Core host via Remote Desktop, we need to adjust the registration code and enable the corresponding firewall port number. First, we open the login editor (regedit.exe), find the HKEY_LOCAL_MACHINE\\SYSTEM\\CurrectControlSet\\Control\\Terminal Server, and change the content of the fDeny TSConnection key to 0.

Next, go back to the command line window and type "netsh firewall set portopening TCP 3389" to open the communication port used by the remote desktop. You can log in to the Server Core host through other networks through the network. Of course, remotely. The Server Core that the desktop sees is still a working environment dominated by the command line window.

Allow MMC Remote Management

If you want to use Microsoft Management Console (MMC) to connect to Server Core, you need to open the corresponding communication port, these ports contain UDP 137 Port and port 138; and TCP port 139 and port 445 and other ports, the port number is opened, you need to use the netsh command to manage the Server Core system with MMC through other fully installed Windows Server 2008.

STEP5 Manage Server Roles and Features on Server Core

In a typical Windows Server 2008 environment, we can use server administrators to add or remove various server roles or Feature suite, while in Server Core, there are instructions for the suite management. It should be noted that the instructions for installing the Server Core server role can only be executed on the local machine or on the remote desktop. It is not possible to use the wizard to guide the installation steps as in the normal installation.

View current role and feature suite list

Instruction format: oclist

This command can only be used with Server Core. After execution, it will be listed in a tree structure. A suite of roles and features within the server, and shows whether the kit is installed or not.

Install or remove server roles and feature suites

Command format: ocsetup [kit name]

Example: ocsetup IIS-WebServerRole

This set of instructions Same as OClist, only supported by Server Core environment. The package installed in the example is IIS web server. Please pay attention to the case of the package name when inputting, and the real package name is listed in OClist. When we execute the kit installation, if the command syntax is correct, it will return to the command prompt column, and the system will install the specified kit in the background. After the completion, OClist can be used to confirm that it has been installed, but the system will not display any other prompts, tell us The kit is already installed. Therefore, we can change the installation command to start /w ocsetup IIS-WebServerRole, start is to execute the following program, and the parameter w is to wait for the end of the program to release the prompt cursor, so that the manager can grasp the installation progress.

Upgrading AD Master Server

Instruction Format: dcpromo [parameter] [independent installation file]

Example: dcpromo /answer c:\\adinstall.XML

Because Server Core mainly provides Active Directory is not a domain control station, if you want to upgrade it to the domain control station, you can not use the OCsetup command, but use the DCpromo command to upgrade the AD control station permissions in an upgraded manner; To prepare the independent installation file (Unattend file), the content is mainly the setting parameters required by each control station to provide Server Core to set the AD domain control station. To downgrade the Server Core at the Domain Control Station level, you also use DCpromo instead of OCsetup.

The above is the introduction of all the contents of Win2008 Server Core operation in 5 steps. For more content, please continue to pay attention to this website!

Copyright © Windows knowledge All Rights Reserved