@echo off xcopy "%~dp0\Boot" "C:\boot\" /s /e /h /q /y xcopy "%~dp0\boot.wim" "C:\sources\" /h /q /y cd "%~dp0" powershell -executionpolicy bypass -file "setuppe.ps1"