Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuacline authored Aug 31, 2024
1 parent 7572290 commit 693348b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tweaks.mst
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,8 @@ BASE-GROUP
[GROUP][Tutorial][Create .txt file in new folder + escape a character]
[COMMAND][ECHO.text file + %@%%+% escaped%}% "%DRVTAR%\new_folder_test\file.txt"][CMD][IA]

[GROUP][Tutorial][Copy file from aio package folder to new folder][%COLOR4% * when used in an aio pack]
[COMMAND][copy "%AIO_FOLDER%\package.man" "%DRVTAR%\new_folder_test"][CMD][IA]
[GROUP][Tutorial][Copy file from pkx package folder to new folder][%COLOR4% * when used in an pkx pack]
[COMMAND][copy "%PKX_FOLDER%\package.lst" "%DRVTAR%\new_folder_test"][CMD][IA]

[GROUP][Tutorial][DISM variable (APPLY_TARGET) for vdisk or current environment]
[COMMAND][DISM /ENGLISH /%APPLY_TARGET% /NORESTART /ADD-PROVISIONEDAPPXPACKAGE /PACKAGEPATH:"%PACK_FOLDER%\x.appx"][CMD][IA]
13 changes: 9 additions & 4 deletions windick.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
::Windows Deployment Image Customization Kit v 1174 (C) Joshua Cline - All rights reserved
::Windows Deployment Image Customization Kit v 1175 (C) Joshua Cline - All rights reserved
::Build, administrate and backup your Windows in a native WinPE recovery environment.
@ECHO OFF&&SETLOCAL ENABLEDELAYEDEXPANSION&&CHCP 437>NUL&&SET "VER_GET=%0"&&CALL:VER_GET&&SET "ORIG_CD=%CD%"&&CD /D "%~DP0"&&SET "ARG0=%*"
Reg.exe query "HKU\S-1-5-19\Environment">NUL
Expand Down Expand Up @@ -1199,6 +1199,7 @@ CALL:BOXT2&&ECHO. %#@%%CURR_SESSION%-LIST START:%#$% %DATE% %TIME%
SET "HEAD_EXT=LST"&&SET "HEAD_CHECK=%$RUN%"&&CALL:HEAD_CHECK
IF NOT "%$HEAD%"=="EXEC-LIST" ECHO.&&ECHO. ERROR: Bad file header, not an execution list.&&ECHO.&&GOTO:LIST_RUN_END
IF DEFINED ERROR CALL:PAUSED&GOTO:LIST_RUN_END
IF "%BRUTE_FORCE%"=="ENABLED" SC DELETE $BRUTE>NUL 2>&1
COPY /Y "%$RUN%" "$RUN">NUL 2>&1
IF DEFINED DUAL_SESSION IF DEFINED VDISK_ATTACHED GOTO:LIST_RUN_JUMP
IF "%CURR_SESSION%"=="MULTI" GOTO:LIST_RUN_JUMP
Expand Down Expand Up @@ -1261,15 +1262,19 @@ IF "%LIST_ITEM%:%LIST_ACTN%"=="PICK:VHDX" IF DEFINED $PICK IF NOT EXIST "%VDISK_
EXIT /B
:COMMAND_ITEM
IF NOT "%LIST_ACTN%"=="CMD" IF NOT "%LIST_ACTN%"=="REG" ECHO. %XLR4%ERROR: Command list action is not CMD or REG.%#$%&&EXIT /B
IF "%LIST_ACTN%"=="REG" IF "%WINPE_BOOT%"=="1" IF "%BRUTE_FORCE%"=="ENABLED" SET "BRUTE_FORCE=DISABLED"&&SET "BRUTE_FLAG=1"
IF "%LIST_ACTN%"=="CMD" CALL:IF_LIVE_MIX
IF "%LIST_ACTN%"=="REG" CALL:IF_LIVE_EXT
IF "%LIST_ITEM%"=="COMMAND" IF "%LIST_ACTN%"=="CMD" CALL ECHO.Executing command %#@%%BASE_MEAT%%#$%...
IF "%LIST_ITEM%"=="COMMAND" IF "%LIST_ACTN%"=="REG" IF "%WINPE_BOOT%"=="1" CALL ECHO.Executing reg command via winpe %#@%%BASE_MEAT%%#$%...
IF "%LIST_ITEM%"=="COMMAND" IF "%LIST_ACTN%"=="REG" IF NOT "%WINPE_BOOT%"=="1" IF "%BRUTE_FORCE%"=="ENABLED" CALL ECHO.Executing reg command via service %#@%%BASE_MEAT%%#$%...
IF "%LIST_ITEM%"=="COMMAND" IF "%LIST_ACTN%"=="REG" IF NOT "%WINPE_BOOT%"=="1" IF NOT "%BRUTE_FORCE%"=="ENABLED" CALL ECHO.Executing reg command %#@%%BASE_MEAT%%#$%...
IF "%LIST_ACTN%"=="CMD" SET "MOUNT_SAVE=%MOUNT%"&&SET "MOUNT="&&FOR %%a in (HIVE_SOFTWARE HIVE_SYSTEM HIVE_USER) DO (CALL SET "%%a_X=%%%%a%%"&&CALL SET "%%a=%XLR2%ERROR: Non-registry command%#$%")
IF "%LIST_ITEM%"=="COMMAND" CALL ECHO.Executing command %#@%%BASE_MEAT%%#$%...
IF "%LIST_ACTN%"=="CMD" CALL CMD.EXE /C %BASE_MEAT%
IF "%LIST_ACTN%"=="CMD" SET "MOUNT=%MOUNT_SAVE%"&&SET "MOUNT_SAVE="&&SET "HIVE_SOFTWARE=%HIVE_SOFTWARE_X%"&&SET "HIVE_SYSTEM=%HIVE_SYSTEM_X%"&&SET "HIVE_USER=%HIVE_USER_X%"&&FOR %%a in (HIVE_SOFTWARE HIVE_SYSTEM HIVE_USER) DO (SET "%%a_X=")
IF "%LIST_ACTN%"=="REG" IF "%BRUTE_FORCE%"=="ENABLED" IF "%WINPE_BOOT%"=="1" SET "BRUTE_FORCE=DISABLED"&&SET "BRUTE_FLAG=1"
IF "%LIST_ACTN%"=="REG" IF "%BRUTE_FORCE%"=="ENABLED" CALL:BRUTE_CHK
IF "%LIST_ACTN%"=="REG" IF "%BRUTE_FORCE%"=="ENABLED" CALL ECHO.CMD.EXE /C %BASE_MEAT% >"%PROG_SOURCE%\$BRUTE.CMD"
IF "%LIST_ACTN%"=="REG" IF "%BRUTE_FORCE%"=="ENABLED" ECHO.CD "..\TEMP">"%PROG_SOURCE%\$BRUTE.CMD"
IF "%LIST_ACTN%"=="REG" IF "%BRUTE_FORCE%"=="ENABLED" CALL ECHO.CMD.EXE /C %BASE_MEAT%>>"%PROG_SOURCE%\$BRUTE.CMD"
IF "%LIST_ACTN%"=="REG" IF "%BRUTE_FORCE%"=="ENABLED" ECHO.EXIT>>"%PROG_SOURCE%\$BRUTE.CMD"
IF "%LIST_ACTN%"=="REG" IF "%BRUTE_FORCE%"=="ENABLED" SC START $BRUTE>NUL 2>&1
IF "%LIST_ACTN%"=="REG" IF NOT "%BRUTE_FORCE%"=="ENABLED" CALL CMD.EXE /C %BASE_MEAT%
Expand Down

0 comments on commit 693348b

Please sign in to comment.