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
在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
查看当前计算机名
IPCONFIG /ALL
SET C
SYSTEMINFO
ps:有时间,分步骤说明~~~~~~~~
本文转自许珈毓的技术思考博客51CTO博客,原文链接http://blog.51cto.com/jiayu/40260如需转载请自行联系原作者
BabyXc