Skip to content

Commit 0661b72

Browse files
authored
Update README.md
1 parent e567fc5 commit 0661b72

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,17 @@ Copy the client ID and Tenant ID and Secret values, and paste to "Settings.ps1"
3535

3636
Copy contents to root of Windows Installer USB drive.
3737

38-
Create SCCM/MDT task sequence and run script during Specialize pass (autunattend.xml)
38+
Create SCCM/MDT task sequence and run script during Specialize pass in the autounattend.xml (see example fo the specialize secetion below or the autunattend.xml in this repo)
39+
40+
<component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
41+
<RunSynchronous>
42+
<RunSynchronousCommand wcm:action="add">
43+
<Order>1</Order>
44+
<Path>cmd /q /c "FOR %i IN (C D E F G H I J K L N M O P Q R S T U V W X Y Z) DO IF EXIST %i:\WindowsAutoPilotInfo.ps1 powershell -ExecutionPolicy Bypass -File %i:\WindowsAutoPilotInfo.ps1 -Settings %i:Settings.ps1"</Path>
45+
<Description>Run AutoPilot script</Description>
46+
</RunSynchronousCommand>
47+
</RunSynchronous>
48+
</component>
3949

4050
Boot installer. Windows should install and run the script to upload the device to AutoPilot.
4151

0 commit comments

Comments
 (0)