Windows Server 2008 Core

Source: Internet
Author: User
Tags compact intl administrator password remote rdp

First, before installing the Server Core, we must note that the Server Core does not support upgrading from a previous version of the server operating system and the full 2008 installation, or upgrading from a successful installation of the Server Core to Windows Server 2008. At the same time, when installing the Server Core under virtual airport view, you need to adjust the memory of the virtual machine to an appropriate size value, otherwise the server core may not be installed because the memory is too small. The installation of the server core is relatively simple and is not specifically described here. Second, the management and maintenance of the Server core needs to be the initial configuration through the command line, the Server core does not include the traditional user interface, once configured, the user can manage the Server Core server in four ways, that is, the use of local or remote Windows command-line management tools, through Terminal Services management , managed through the Microsoft Management Console (MMC), or through the Windows Remote shell. Note that to manage Server Core, you need an account that provides administrator privileges for the Server Core server, and that the commands are completely absolute for most administrative tasks, but given the administrator's familiarity with the commands and the difficulty of managing tasks, in order to reduce administrative time and difficulty, Some administrative tasks (DHCP, DNS, and so on) are managed using the Microsoft Management Console of the remote computer. Here are the specific operations commands for managing Server Core:  1, setting the local administrator user's password net user administrator * Note the command to include (*) and then press ENTER, then type the administrator password. The password will not be exposed directly to the screen, but instead be replaced with a *. &NBSP;2, display computer related information hostnamesetsysteminfoipconfig/all 3, display network card information netsh interface IPv4 show interfaces through this command, You can display information such as the connection status, the IDX number, and the name of the current computer's network card   Save the current configuration netsh interface dump > Myconfig.dat (save current network configuration to Myconfig.dat file) restore network configuration netsh exec myconfig.dat (Restore network configuration from backup file)  4, set IPv4 static address for network card netsh Interface IPv4 set address Name= "<ID>" source=static address=<staticip> mask=<subnetMask> gateway=<defaultgateway>name=<id> can be the IDX number of the network card obtained from the previous command, or it can be the NIC name. Staticip is the static IPV4 address of the network card, SubnetMask is the subnet code, DefaultGateway is the gateway address. Example: netsh interface ipv4 set address Name= "Ten" static 192.168.0.2 255.255.255.0 192.168.0.1 or netsh interface ipv4 set address Name= "Local Area Connection" static 192.168.0.2 255.255.255.0 192.168.0.1  5, setting the address of the DNS server for the network card netsh interface ipv4 add DNSServer name= "<ID>" address=<dnsip> index=1 when there are multiple DNS server addresses, you must reuse this command, and the value after index must be incremented.   Dynamically specify DNS server address netsh interface ipv4 set dnsserver name= "<ID>" dhcp  6, set network card to obtain IP address automatically netsh interface IPv4 set address name= "IDX" source=dhcp 7, renaming network adapter netsh interface set interface name= "Oldname" Newname= "NewName" & NBSP;8, disabling the network adapter: netsh interface set interface name= "name" Admin=disabled 9, joining the computer to the domain netdom join ComputerName/ domain:domainname/userd:username/passwordd:*   Note that the computername here is the server machine name, DomainName is domain-joined domain name, Username is a domain user name that has permission to join the domain. Enter the password for the domain user, and then restart the computer to join the domain if the operation succeeds. &NBSP;10, removing the computer from the domain netdom remove computername/domain:domainname/userd:username/passwordd:*  11, renaming of computers joined to the domain netdom renamecomputer% computername%/newname:<new Computer name>/userd:<domain\username>/password:* 12, Rename netdom renamecomputer currentcomputername>/newname:<newcomputername> or WMIC ComputerSystem for computers that are not joined to a domain where name= "%computername%" rename name= "New_name"  13, restart or shut down computer shutdown–r–t 0 (boot computer) shutdwon–s–t 0 (Turn off computer –t set shutdown meter 0-600 seconds, default 30 seconds)  14, enable or disable hibernation powercfg–h <on|off> on: Enabled, off: Disable  15, The system clock configures the computer's clock to synchronize with the PDC emulator in the domain W32tm/config/update/syncfromflags:domhier immediately synchronizes the computer clock w32tm.exe/resync/nowait 16, Configure the Server Core computer to run WinRM quickconfig on Server Core using Windows Remote shell Management to enable the computer to connect remotely to the Windows Remote shell On the remote computer, run:winrs-r:<servername> cmd,<servername> to install the computer name for Server Core, and CMD is the specific command to execute. Example: Winrs-r:myservercore dir c:\; 17, activation of the server automatic activation server Slmgr.vbs–ato remote activation cscript Slmgr.vbs-ato <servername> <username> <password> Show detailed license informationcscript slmgr.vbs–dlv 18, adjust date and clock control timedate.cpl. Regional and language option settings? control intl.cpl. 19, allow ping into Netsh Firewall set icmpsetting 8 disables ping into netsh firewall set icmpsetting 8 Disable can also be controlled via the remote computer's firewall console  20, User Management Add users to the local Administrators group net localgroup administrators/add <domain>\<username> Remove the user from the local Administrators group from the net localgroup Administrators/delete <domain\username> 21, query installed driver sc query type= driver 22, Install the driver for the new hardware into the folder where the hardware driver is located, run Pnputil-i-a <driverinf>,driverinf is the INF file name of the hardware driver. &NBSP;23, removing installed drivers sc Delete <service_name> 24, service operations Show running Service SC query or net start start service SC start <service name> or net start <service name> stop service sc stop <service name> or net stop <service name> 25, paging File Operations Settings page Polygon file wmic pagefileset where name= "<path/filename>" set initialsize=<initialsize>,maximumsize=<maxsize > For example: WMIC pagefileset where name= "C:\\pagefile.sys" set initialsize=500,maximumsize=1000 set the initial value of the page file for C-drive to 500MB, Maximum value for 1000mb  canceling system paging file management WMIC ComputersysteM where name= "<computername>" set automaticmanagedpagefile=false 26, change workgroup wmic ComputerSystem where name= " <computername> "Call JoinDomainOrWorkgroup name=" <new workgroup name> " 27, Manual patch manual Patch: Download the update package from the Web site, Then run WUSA <update>.msu/quiet  Uninstall the installed hotfix first with expand/f:* <update>.msu <path> to show the installed patches to a folder, Then edit the <update>.xml in the folder, replace all the install with the remove character, and finally run the Pkgmgr/n:<update>.xml.   Query installed hotfixes List:     wmic QFE list 28, Automatic Update operation cscript C:\Windows\System32\ scregedit.wsf/ AU [/v][value]/v View current Automatic Updates settings     Value:4-Enable Automatic Updates     1-Disable Automatic Updates  29, change the priority of DNS SRV Records CS Cript C:\Windows\System32\ scregedit.wsf /dp [/v][value]  /v    View DNS SRV Priority Settings  & nbsp;  Value: (value from 0 to 65535, recommended value is $)  30, change the weight of DNS SRV Records cscript C:\Windows\System32\ SCREGEDIT.WSF/DW [/v][val ue]  /v    View DNS SRV weight Settings     value   (value from 0To 65535, recommended value is  31, event log management lists the log type wevtutil el query specifies the event of the log type wevtutil qe/f:text <log name> Output Event log type wevtutil EPL <log name> Clear Log wevtutil cl <log name> 32, Management Server roles and features display server roles and characteristics and installation oclist  Install Active Directory roles for Active Directory roles, You must use Dcpromo/unattend:unattendfile. Here, UnattendFile is the name of the Dcpromo unattended answer file, and note that Dcpromo can also be used when demoting a domain controller to a member server.   Install other roles and features start/w OCSetup <name>;<name> is required to install, get server roles and feature names by Oclist, note the capitalization of names,/w: Start the application and wait for the end.   Uninstall other installed roles and features start/w OCSetup <name>/uninstall For example: start/w ocsetup dns-server-core-role Installing the DNS server role, It is then managed using the dnscmd command or remotely using the DNS Management console. start/w ocsetup Dns-server-core-role/uninstall Uninstall the DNS server role start/w ocsetup dhcpservercore Install the DHCP server role, It is then managed with the Netsh command or remotely using the DHCP management console. If you are installing a DHCP server under Active Directory, you must also authorize it in the Active Directory. start/w ocsetup dhcpservercore/uninstall Uninstall DHCP server role  33, the management of the Customer Experience Improvement Program (CEIP) displays Windows server Customer Experience Improvement Program participation status Serverceipoptin/query enabling the Windows Server Customer Experience Improvement Program serverceipoptin/enable disabling Windows Server Customer Experience Improvement Program serverceipoptin/disable 34, error Reporting management display WindowsError reporting opt-in status serverweroptin/query automatically send a summary report using Windows Error Reporting serverweroptin/summary automatically send detailed reports using Windows Error Reporting Serverweroptin/ Detailed disables Windows error reporting serverweroptin/disable  . &NBSP;35, using Terminal Services Client Management Server Core first in the Server Core allows Terminal Services management mode to accept remote connections cscript C:\Windows\System32\ Scregedit.wsf/ar 0 If you are running a previous version of the Terminal Services client , you must run cscript C:\windows\system32\scregedit.wsf/cs 0 to allow the previous version of the connection to be configured next to allow remote RDP connections through the firewall netsh advfirewall firewall set rule group= "Remote Desktop" new Enable=yes finally runs MSTSC on a remote computer or opens a Remote Desktop connection, and then enters the server's computer name or IP address to connect. Then, log in with the Administrator account, and when the command-line window appears, use the command line to finish administration, and finally type logoff to end the session. &NBSP;&NBSP;36, firewall management uses the netsh firewall command to manage the firewall display status of the firewall netsh firewall show state, if displayed operational Mode mode enables the firewall is enabled, the firewall is disabled for disable, and enable disable firewall is enabled netsh firewall set opmode enable| Disable:enable Enable firewall,                                  DISABLE-Disables the firewall.   Set firewall port configuration netsh firewall set portopening      [protocol =] Tcp| udp| all                                                  [port =] 1-65535                                                          [[name =] name                                                           [mode =] enable| disable                                            parameter:                                                                 protocol-Port protocol.                                                       TCP-Transmission Control Protocol (TCP).                                UDP-User Datagram Protocol (UDP).                                         All-all agreement.                                                     Port-Port number.                                                         name-the port name (optional).                                                mode-port modes (optional).                                                    enable-allows through the firewall (default).                                DISABLE-Firewall is not allowed (default).   For example: Turn on printer and file sharing       Netsh firewall set portopening TCP 139 netbios_139       Netsh FIrewall set portopening TCP 445 netbios_445netsh firewall set portopening UDP 137 netbios_137netsh Firewall set Portopenin G UDP 138 netbios_138 (139 port: NetBIOS session Service; Port TCP on port 445 smb;137: NetBIOS Name Service 138 port: NetBIOS datagram Service;) Allow Remote Desktop netsh firewall set portopening TCP 3389 remotedesktop 37, other commands disk partition management: DiskPart/? Example: The following uses the DiskPart command to partition the second block of hard disks: Diskpartlist disk (List all disks) Select Disk 1 (select the newly added disk, 1 is the new disk's hard drive number) Create partition primary (divides the entire hard disk into primary partition, if you want to specify the size, add the parameter size=xxxx, in megabytes) Assign Letter=e (allocation letter E) format Fs=ntfs label= "Diske" quick (the partition is quickly formatted as NTFS format, volume labeled Diske) List volume (list all volumes, will find E-disk)   Software RAID Management: Diskraid/? Volume mount point management: Mountvol/? disk Fragmentation Management: Defrag/? Compressed files: Compact/Example: Compact c:\123\123.txt/c compressed c:\123\ file 123.txt& nbsp;   Compact c:\123\123.txt/u c:\123\ file 123.txt extract open File management: Openfiles/? Convert FAT volumes to Ntfs:convert < Volume letter>/fs:ntfs  allow remote procedure call netsh firewall set portopening TCP 135 remoteadmin Show current firewall configuration netsh firewall show co Nfig                   . 1, the Server Core does not support the Winver.exe command, to obtain version information, you need to use the Systeminfo.exe command. 2, the Server Core alone does not support running the Control.exe command alone, Control.exe must be run with timedate.cpl or intl.cpl, while the other Control Panel settings command is not supported. 3. When you use the Disk Management console for remote administration, you must run the Net start VDS command on the server Core to start the Virtual Disk service. 4, some commands (rename computer name, etc.) operation, you must restart the computer to be effective. 5. Some commands have different parameters in XP and 2008, for example, using Netsh interface ip set DNS to set DNS server address under XP. Specific parameters refer to the command to help.

Windows Server 2008 Core

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.