windows2008无人值守安装域控制器
转自:https://blog.csdn.net/techviewer/article/details/26485017
unattend.txt文件:
; dcpromo unattend file (automatically generated by dcpromo) ; usage: ; dcpromo.exe /unattend:c:\users\administrator\desktop\123.txt ; [dcinstall] ; new forest promotion replicaornewdomain=domain newdomain=forest newdomaindnsname=contoso.com forestlevel=4 domainnetbiosname=contoso domainlevel=4 installdns=yes confirmgc=yes creatednsdelegation=no databasepath="c:\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) ; rebootoncompletion=yes
主要注释:
dcpromo.exe /unattend:c:\users\administrator\desktop\123.txt,这个是应答文件
newdomaindnsname=contoso.com,新的dns名称是“contoso.com”
forestlevel=4,林功能级别是2008r2
installdns=yes,安装dns服务
confirmgc=yes,配置gc角色
creatednsdelegation=no,不创建dns委派
databasepath="c:\windows\ntds",数据库文件路径
logpath="c:\windows\ntds",日志文件路径
sysvolpath="c:\windows\sysvol",sysvol路径
下面转自:http://www.pianshen.com/article/589051953/
文件中已经说明了该文件的使用方法:
dcpromo.exe /unattend:“c:\users\1234\documents\answer.txt”
使用命令行安装ad
windows server 2008
不支持,因为它没有powershell
,r2
是支持的
在powershell
中执行如下命令:
dcpromo /unattend /installdns:yes /newdomain:forest /replicaornewdomain:domain /newdomaindnsname:sayms.com /domainnetbiosname:sayms /forestlevel:4 /domainlevel:4 /creatednsdelegation:no /databasepath:"%systemroot%\ntds" /logpath:"%systemroot%\ntds" /sysvolpath:"%systemroot%\sysvol" /safemodeadminpassword:v201303036. /rebootoncompletion:yes
其实和上面的应答文件差不多,注意,要写成一行,上面是为了易于查看才截开的
dcpromo /unattend /installdns:yes /newdomain:forest /replicaornewdomain:domain /newdomaindnsname:sayms.com /domainnetbiosname:sayms /forestlevel:4 /domainlevel:4 /creatednsdelegation:no /databasepath:"%systemroot%\ntds" /logpath:"%systemroot%\ntds" /sysvolpath:"%systemroot%\sysvol" /safemodeadminpassword:v201303036. /rebootoncompletion:yes
上面的应答文件安装和命令行安装都属于无人值守安装,在安装前应该切换为administrator
用户,把ip
设置为静态,首选dns
服务器指向自己,计算机名更改为dc1
上一篇: Easydarwin加FFMPEG实现HLS流视频点播
下一篇: 外链的复杂性以及多样性分析