我想在Server 2012上使用WDS部署映像。我将尽可能使用无人值守安装的答案文件。 我的答案文件效果很好,但我不能让自动login工作和FirstLogonCommand运行。 我使用Windows映像pipe理器将Components\7 oobeSystem\amd64_ Microsoft-Windows- Shell-Setup _neutral\FirstLogonCommands到我的答案文件中,并添加了以下值:
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自动login,并添加了这些值:
Domain = contoso Enabled = true LogonCount = 1 Typed the password Username = Administrator
这两个组件单独不起作用。 它安装Server 2012确定并绕过我想绕过的所有屏幕,甚至成功join域contoso。
我必须手动login,然后当我login没有脚本或任何运行。 当服务器pipe理器打开DNSangular色没有安装,甚至没有位于工具下。
我试过的东西:
以pipe理员身份打开cmd并键入: powershell -command Install-WindowsFeature DNS –IncludeManagementTools -IncludeAllSubFeature -Restart成功powershell -command Install-WindowsFeature DNS –IncludeManagementTools -IncludeAllSubFeature -Restart此工作和安装的angular色
如果我错过了任何东西来帮助你解决问题。