使用 WDS 和应答文件部署具有 DNS 角色的 Server 2012

使用 WDS 和应答文件部署具有 DNS 角色的 Server 2012

我想在 Server 2012 上使用 WDS 部署映像。我将使用应答文件进行无人值守安装,尽量减少接触。我的应答文件运行良好,但我无法让自动登录工作,也无法运行 FirstLogonCommand。我Components\7 oobeSystem\amd64_ Microsoft-Windows- Shell-Setup _neutral\FirstLogonCommands使用 Windows 映像管理器添加到我的应答文件中,并添加了以下值:

CommandLine = powershell -command Install-WindowsFeature DNS –IncludeManagementTools -IncludeAllSubFeature -Restart
Description =Install dns server
Order = 1

然后我执行了自动登录Components\7 oobeSystem\amd64_ Microsoft-Windows- Shell-Setup _neutral\Autologon并添加了以下值:

Domain = contoso
Enabled = true
LogonCount = 1
Typed the password
Username = Administrator

这两个组件单独不起作用。它成功安装了 Server 2012,绕过了我想要绕过的所有屏幕,甚至成功加入了域 contoso。

我必须手动登录,但登录后没有运行任何脚本或任何东西。当服务器管理器打开时,DNS 角色未安装,甚至不在工具下。

我尝试过的事情:

以管理员身份打开 cmd 并输入:powershell -command Install-WindowsFeature DNS –IncludeManagementTools -IncludeAllSubFeature -Restart此操作有效并成功安装角色

如果我遗漏了任何可以帮助您解决问题的东西,请直接询问。

相关内容