我目前正在尝试使用 WDS 部署 Windows 11 映像。我想在管理员登录后运行 powershell 脚本(提示输入计算机名称),但我甚至无法让 mkdir 工作。我做错了什么吗?我可以检查本地计算机上的日志或其他东西来调试发生了什么以及它返回了什么错误吗?
<settings pass="oobeSystem">
<component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<InputLocale>0813:00000813</InputLocale>
<SystemLocale>nl-BE</SystemLocale>
<UILanguage>nl-NL</UILanguage>
<UserLocale>nl-BE</UserLocale>
</component>
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<UserAccounts>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Name>Administrator</Name>
<Group>Administrators</Group>
<Password>
<Value>password</Value>
<PlainText>true</PlainText>
</Password>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
<AutoLogon></AutoLogon>
<OOBE>
<ProtectYourPC>3</ProtectYourPC>
<HideEULAPage>true</HideEULAPage>
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
</OOBE>
<!-- Not running? -->
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<CommandLine>powershell.exe mkdir C:\TEST\</CommandLine>
<Description>Open powershell</Description>
<Order>1</Order>
</SynchronousCommand>
</FirstLogonCommands>
</component>
</settings>
在 Panther 无人值守文件中,除了 FirstLogonCommands 标签及其内容外,所有内容都在那里。它只是不存在而已。