Removed checking of appId using result parsing, since appId is already a parameter, added command to remove unprovisioned Notepad++ package, which breaks Sysprep

This commit is contained in:
Zehadi Alam
2024-07-12 23:40:59 -04:00
parent 191c30dd65
commit ab58b27a1d
3 changed files with 12 additions and 6 deletions
@@ -51,6 +51,11 @@ for /d %%D in ("%basepath%\*") do (
)
:remaining
endlocal
for /r "D:\" %%G in (.) do (
if exist "%%G\Notepad++" (
powershell -Command "Remove-AppxPackage -Package NotepadPlusPlus_1.0.0.0_neutral__7njy0v32s6xk6"
)
)
REM The below lines will remove the unattend.xml that gets the machine into audit mode. If not removed, the OS will get stuck booting to audit mode each time.
REM Also kills the sysprep process in order to automate sysprep generalize
del c:\windows\panther\unattend\unattend.xml /F /Q