diff --git a/06_Copy2Media.cmd b/06_Copy2Media.cmd index 4638325..5ceb41a 100644 --- a/06_Copy2Media.cmd +++ b/06_Copy2Media.cmd @@ -30,6 +30,10 @@ if NOT EXIST %DRIVE% ( echo using drive [ %DRIVE% ] ... echo. +echo disabling Windows defender for PATH [ %DRIVE% ] ... +powershell -inputformat none -outputformat none -NonInteractive -Command Add-MpPreference -ExclusionPath %DRIVE% +echo. + if NOT EXIST %SOURCES%\%BOOTFILE% ( echo DOH! no %BOOTFILE% in [ %SOURCES% ] found exit /b