Skip to content

Instantly share code, notes, and snippets.

@brianfgonzalez
Created May 7, 2019 21:08
Show Gist options
  • Save brianfgonzalez/3a5cf51231ce3c78ae4e06727a330381 to your computer and use it in GitHub Desktop.
Save brianfgonzalez/3a5cf51231ce3c78ae4e06727a330381 to your computer and use it in GitHub Desktop.
x64 Windows PE custom unattend.xml that calls RecoveryWipe.ps1 before calling Litetouch.wsf.
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
<RunSynchronous>
<RunSynchronousCommand wcm:action="add">
<Description>BG Info</Description>
<Order>1</Order>
<Path>powershell.exe -executionpolicy bypass -file x:\RecoveryWipe.ps1</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Description>Call Litetouch</Description>
<Order>2</Order>
<Path>wscript x:\deploy\scripts\litetouch.wsf</Path>
</RunSynchronousCommand>
</RunSynchronous>
</component>
</settings>
</unattend>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment