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

本文提供了一个在SERVERCORE环境下通过使用UNATTEND文件安装Active Directory的具体实例,并介绍了如何配置新森林、域DNS名称等参数。
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:有时间,分步骤说明~~~~~~~~
本文转自许珈毓的技术思考博客51CTO博客,原文链接http://blog.51cto.com/jiayu/40260如需转载请自行联系原作者

BabyXc
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值