如何在Windows Server 2008 Core里面添加Role~~~

SERVER CORE 中添加服务器

添加AD:
在SERVER CORE 下安装AD必须使用UNATTEND文件来进行安装
以下是一个UNATTED文件的实例
; DCPROMO unattend file (automatically generated by dcpromo)
; Usage:
;   dcpromo.exe /unattend:F:\LONGHORN.txt
;
[DCInstall]
; New forest promotion
ReplicaOrNewDomain=Domain (产生新域)
NewDomain=Forest(新森林)
NewDomainDNSName=Nwtraders.msft(新域的DNS名字)
ForestLevel=0(森林根)
DomainNetbiosName=nwtraders(DOMAIN的NETBIOS名)
DomainLevel=0
InstallDNS=Yes自动安装DNS
ConfirmGc=Yes(当前DC为GC)
DNSDelegation=No
DatabasePath=D:\Windows\NTDS
LogPath=c:\Windows\NTDS
SYSVOLPath=c:\Windows\SYSVOL
; Set SafeModeAdminPassword to the correct value prior to using the unattend file
SafeModeAdminPassword=(目录恢复模式管理员密码)
; Run-time flags (optional)
; CriticalReplicationOnly=Yes
; RebootOnCompletion=Yes(安装结束是否自动启动)
TransferIMRoleIfNecessary=No


设置多个DNS
netsh interface ipv4 add dnsserver name="#" address=192.168.1.1 index=1
netsh interface ipv4 add dnsserver name="#" address=192.168.1.2 index=2
name为网络连接名称


添加角色
start /w ocsetup rolepackage

rolepackage:
DHCP = DHCPServerCore
DNS = DNS-Server-Core-Role
File = File-Server-Core-Role
File Replication service = FRS-Infrastructure
Distributed File System service = DFSN-Server
Distributed File System Replication = DFSR-Infrastructure-ServerEdition
Network File System = ServerForNFS-Base
Single Instance Store = SIS
Microsoft-Hyper-v

查看当前计算机名
IPCONFIG /ALL
SET C
SYSTEMINFO
ps:有时间,分步骤说明~~~~~~~~

本文出自 “许珈毓的技术思考” 博客,谢绝转载!

你可能感兴趣的:(职场,core,role,休闲)