Skip to content

Commit

Permalink
Version 3.0.1 (2024-11-14)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidGeeraerts committed Nov 14, 2024
1 parent 4b01849 commit bab89ed
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
9 changes: 8 additions & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@

---

## Version 3.0.1 (2024-11-14)

#### Fixed
- Ability to rerun APPX package removal
- OS_Caption

---

## Version 3.0.0 (2024-11-14)

#### Added
Expand All @@ -36,7 +44,6 @@
- wmic command since it will be deprecated with Windows 11 24H2
- Removed the use of DELProf2 to delete user profiles

---

## Version 2.2.5 (2022-12-21)
#### Changed
Expand Down
12 changes: 7 additions & 5 deletions module_system_SysPrep.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
@echo Off
SETLOCAL Enableextensions
SET $SCRIPT_NAME=module_system_SysPrep
SET $SCRIPT_VERSION=3.0.0
SET $SCRIPT_BUILD=20241113 1430
SET $SCRIPT_VERSION=3.1.0
SET $SCRIPT_BUILD=20241114 1000
Title %$SCRIPT_NAME% Version: %$SCRIPT_VERSION%
mode con:cols=70
mode con:lines=40
Expand Down Expand Up @@ -157,6 +157,7 @@ SET $IMAGE_TYPE=Base

echo Initializing...
echo reading configuration file...
echo.

:SLT
:: Start Time Start Date
Expand Down Expand Up @@ -312,7 +313,7 @@ SET "$LD=%$WD%\%$LD%\%COMPUTERNAME%"
for /f "tokens=3 delims= " %%P IN (%$CD%\Windows_Caption.txt) do SET $COMPANY=%%P
for /f "tokens=4 delims= " %%P IN (%$CD%\Windows_Caption.txt) do SET $OS=%%P
for /f "tokens=5 delims= " %%P IN (%$CD%\Windows_Caption.txt) do SET $OS_MAJOR=%%P
for /f "tokens=3-5 delims= " %%P IN (%$CD%\Windows_Caption.txt) do SET "$CAPTION=%%P %%Q %%R"
for /f "tokens=3-5 delims= " %%P IN (%$CD%\Windows_Caption.txt) do SET "$OS_CAPTION=%%P %%Q %%R"
:: Server
if %$OS_MAJOR%=="Server" FOR /F "skip=1 tokens=5 delims= " %%P IN ('REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion" /V "ProductName"') DO SET $OS_MAJOR=%%P
FOR /F "skip=1 tokens=3 delims= " %%P IN ('REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion" /V "EditionID"') DO SET $OS_EDITION=%%P
Expand Down Expand Up @@ -532,8 +533,9 @@ GoTo Menu
SET $STEP_NUM=4
SET $STEP_DESCRIP=%$Process_T_4%
CALL :banner
IF EXIST "%$CD%\%$PROCESS_4%" GoTo skipP4
Echo Processing %$STEP_DESCRIP% ...
IF EXIST "%$CD%\%$PROCESS_4%" (echo Reprocessing %$STEP_DESCRIP%...) else (
Echo Processing %$STEP_DESCRIP% ...
)
echo %TIME% [INFO] Processing %$STEP_DESCRIP%... >> "%$LD%\%$MODULE_LOG%"
echo %date% %TIME% >> "%$CD%\%$PROCESS_4%"
:: Get list of all APPX packages
Expand Down

0 comments on commit bab89ed

Please sign in to comment.