我正在尝试构build一个无人照pipe的Windows 7映像脚本,它将执行简单的域连接。 问题在于DHCP提供的DNS服务器对我的域名一无所知,所以我需要在UnattendedJoin任务运行之前将DNS服务器设置为知道该域名的东西。 我使用unattend.xml的Microsoft-Windows-DNS-Client执行此操作。
我知道正在设置DNS设置,因为一旦Win7机器出现, Local Area Connection NIC IP设置就是正确的。 但是,它永远不会到达这个领域。 具体的错误报告是:
[DJOIN.EXE] Unattended Join: Begin [DJOIN.EXE] Unattended Join: Loading input parameters... [DJOIN.EXE] Unattended Join: AccountData = [NULL] [DJOIN.EXE] Unattended Join: UnsecureJoin = [NULL] [DJOIN.EXE] Unattended Join: MachinePassword = [secret not logged] [DJOIN.EXE] Unattended Join: JoinDomain = [domain.example.com] [DJOIN.EXE] Unattended Join: JoinWorkgroup = [NULL] [DJOIN.EXE] Unattended Join: Domain = [DOMAIN] [DJOIN.EXE] Unattended Join: Username = [domainuser] [DJOIN.EXE] Unattended Join: Password = [secret not logged] [DJOIN.EXE] Unattended Join: MachineObjectOU = [OU=Clients,OU=Bucket,DC=example,DC=domain,DC=com] [DJOIN.EXE] Unattended Join: DebugJoin = [true] [DJOIN.EXE] Unattended Join: DebugJoinOnlyOnThisError = [NULL] [DJOIN.EXE] Unattended Join: Enabled DC Locator ETW tracing. Log file: C:\Windows\Panther\UnattendGC\UnattendedJoinDCLocator.etl [DJOIN.EXE] Unattended Join: Checking that auto start services have started. [DJOIN.EXE] Unattended Join: Joining domain [domain.example.com]... [DJOIN.EXE] Unattended Join: Calling DsGetDcName for domain.example.com... Unattended Join: DsGetDcName failed: 0x54b, last error is 0x0, will retry in 5 seconds...
此错误似乎意味着“我无法find域”。 奇怪的是,如果我尝试在安装完成后尝试进行手动域join,那么可以正常工作。 所以出于某种原因,即使DNS设置正确设置之前(我可以看到它进一步日志文件), DJOIN.EXE没有使用它们。
这里发生了什么?
在这种情况下,有几个选项可以帮助您将您的机器join域。
首先,因为networking设置正在专门传递中设置,所以稍后可以在将计算机连接到域的过程中运行脚本。 在oobesystem传递中,可以使用属于Microsoft-Windows-Shell-Setup组件的“FirstLogonCommands”设置下的“SynchronousCommand”设置来运行脚本以将计算机连接到域。
另一个select是使用此TechNet文章中的“脱机域join(Djoin.exe)分步指南”中的解释来使用脱机域join。
在TechNet上交付和部署Windows 7以及Springboard Series的交付和部署Windows 8页面上可以find更多的分步指南和video以帮助您部署的需求。
希望这可以帮助,