我使用WDS,unattend.xml和oobeunattend.xml向多台计算机推出了一个新的Win7映像。
当然,您必须在OOBE体验中创build本地用户,但这不是我想要保留的地方。
我把这个添加到我的OOBE.xml中,但是它不工作,甚至在我的域join组件之后:
<settings pass="auditUser"> - <component name="Microsoft-Windows-Deployment" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - <RunSynchronous> - <RunSynchronousCommand wcm:action="add"> - <Credentials> <Domain>DOMAIN</Domain> <Password>PASSWORD</Password> <Username>administrator</Username> </Credentials> <Order>1</Order> <Description>Removes original test user</Description> <Path>net user temp /del</Path> </RunSynchronousCommand> </RunSynchronous> </component> </settings>
呜呼我知道了!
在我的答案文件中,我没有专门制作一个脚本(在Specialize组件中运行,而用户是在oobeSystem中创build的),而是添加了Windows-Shell-Setup --> FirstLogonCommands并将命令放在那里。 完美的工作! 谢谢!