汽车总动员下载,静心口服液广告词,殷晓雪
转自: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”
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
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
win10如何启用管理员账户 win10禁用/启用管理员账户的方法
win10怎么查看驱动是否异常 Win10检测驱动程序是否正常的方法
Windows10系统任务栏无效图标怎么删除 通过注册表一键快速删除
Win10系统自动重启怎么办 Win10系统自动重启的关闭方法
怎么减少win10笔记本功耗 详谈笔记本硬件功耗大的原因和解决办法
网友评论