I am trying to modify my autounattend.xml file to have it run a batch file on first boot (at the OOBE screen). I tried adding the following in my :
<settings pass="oobeSystem">
<component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
</component>
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<CommandLine>C:\Windows\PathtoScriptFile\Script.bat</CommandLine>
<Order>1</Order>
</SynchronousCommand>
</FirstLogonCommands>
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
Upon running this, I get a message saying "windows could not parse or process unattend answer file" for the oobesystem during my installation.
My autounattend file worked previously up until adding this part. Do I have something incorrectly added?
Thank you!