ufws (UnF**k Windows Setup)

Discussion in 'Windows 11' started by owouwu, Oct 29, 2021.

  1. owouwu

    owouwu MDL Novice

    Oct 29, 2021
    26
    89
    0
  2. 20126688

    20126688 MDL Novice

    Sep 14, 2012
    19
    5
    0

    Code:
    for /f "tokens=2 delims==" %%# in ('%%_wimlib%% info Work\sources\%%WIMFILE%% --header  ^| find "Image Count"') do set "_imagecount=%%#"
    for /L %%i in (1,1,%_imagecount%) do %_wimlib% info Work\sources\%WIMFILE% %%i --image-property WINDOWS/INSTALLATIONTYPE=Server
     
  3. BAU

    BAU MDL Expert

    Feb 10, 2009
    1,296
    3,569
    60
    That's honestly great.
    What's with this freaking full blown hostility towards anyone and anything trying out new stuff (good or bad) outside the one sticky tool that is somehow set in stone and nobody is even allowed to discuss alternatives, only the mdl "cabal".
    This would be a horrible place if not for people like abbodi1406 that single-handedly balances all your current and past persona's collective inflated ego's (with that said, I too have grown a big one, but I still not qualify for the "club" ;))
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Dark Monkey

    Dark Monkey MDL Addicted

    Feb 2, 2011
    710
    849
    30
    #24 Dark Monkey, Oct 30, 2021
    Last edited: Oct 30, 2021
    is it work or not ?
    you gonna add to next version ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. awuctl

    awuctl MDL Member

    Jun 6, 2020
    109
    389
    10
    I think a big ego is not necessarily bad when the only quality we take any pride in is technical merit. We're aware we're not the greatest people but if there was a better solution that worked we'd gladly acknowledge "defeat".

    This wouldn't be here if we hadn't thought "Why are they doing it like that?" and wanted it to shift to something simpler. "The collective" is just a form of "yeah, I don't want this under my name", which is something we really really couldn't give a s**t about. Being a no-name lets you not have an army of forum-dwellers spam "wait, didn't X 'invent' that switch two minutes earlier?", which would've been useful to have done for past projects.

    I only wish those "new stuff (good or bad)" ways weren't calling clean installs upgrades and constantly refusing to acknowledge that half of their tool simply doesn't work anymore even when given direct proof (as with the person above).
    Anyone is qualified for that "cabal" you speak of as long as they value if something works well and not just if it's theirs or not.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Dark Monkey

    Dark Monkey MDL Addicted

    Feb 2, 2011
    710
    849
    30
    #27 Dark Monkey, Oct 30, 2021
    Last edited: Oct 30, 2021
    Skip TPM Check on Media Boot [v3]
    with Build In Wim-Lib, 6X Bypass Type, Server Bypass, And Folder Drag & Drop Support

    Code:
    :: run from the root of the USB drive or ISO files to add reg overrides in sources\boot.wim via winpeshl.ini
    :: run it under windows, before booting from it.
    
    @cls
    @echo off
    >nul chcp 437
    
    set media=%1
    set wimimage=
    set "wimlib="%temp%\Wim-Lib\wimlib-imagex""
    set "tmpFile="%temp%\result""
    setlocal enabledelayedexpansion
    title Skip TPM Check on Media Boot
    
    fltmc>nul || (set _="%~f0" %* & powershell -nop -c start -verb runas cmd \"/d/x/rcall $env:_\"  & exit/b)
    
    pushd "%~dp0"
    @set "0=%~f0" & call powershell -nop -c $f=[IO.File]::ReadAllText($env:0)-split':bat2file\:.*';iex($f[1]); X(1)
    if defined media pushd %media% & if not exist sources\boot.wim popd
    if not exist sources\boot.wim echo; SOURCES\BOOT.WIM NOT FOUND! & timeout /t 5 & exit/b
    
    set "fCD=%cd%"&if /i '!fCD:~-1!' EQU '\' set "fCD=!fCD:~0,-1!"
    for %%k in (esd wim) do if exist "!fCD!\sources\install.%%k" set wimimage="!fCD!\sources\install.%%k"
    if not defined wimimage echo; SOURCES\INSTALL.XXX NOT FOUND! & timeout /t 5 & exit/b
    %wimlib% info !wimimage! --header | >!tmpFile! 2>&1 find /i "Image Count"
    for /f "tokens=2 delims==" %%# in ('type !tmpFile!') do set "imagecount=%%#"
    for /L %%i in (1,1,!imagecount!) do %wimlib% info !wimimage! %%i --image-property WINDOWS/INSTALLATIONTYPE=Server
    
    dism /cleanup-wim & mkdir C:\ESD\AveYo>nul & set ini=C:\ESD\AveYo\Windows\System32\winpeshl.ini
    dism /mount-wim /wimfile:sources\boot.wim /index:2 /mountdir:C:\ESD\AveYo & (set DO=commit) & if exist %ini% (set DO=discard)
    
     >%ini% echo;[LaunchApps]
    >>%ini% echo;cmd, "/c reg add HKLM\SYSTEM\Setup\LabConfig /v BypassTPMCheck /d 1 /t reg_dword /f"
    >>%ini% echo;cmd, "/c reg add HKLM\SYSTEM\Setup\LabConfig /v BypassSecureBootCheck /d 1 /t reg_dword /f"
    >>%ini% echo;cmd, "/c reg add HKLM\SYSTEM\Setup\LabConfig /v BypassStorageCheck /d 1 /t reg_dword /f"
    >>%ini% echo;cmd, "/c reg add HKLM\SYSTEM\Setup\LabConfig /v BypassRAMCheck /d 1 /t reg_dword /f"
    >>%ini% echo;cmd, "/c reg add HKLM\SYSTEM\Setup\LabConfig /v BypassDiskCheck /d 1 /t reg_dword /f"
    >>%ini% echo;cmd, "/c reg add HKLM\SYSTEM\Setup\LabConfig /v BypassCPUCheck /d 1 /t reg_dword /f"
    >>%ini% echo;%%SYSTEMDRIVE%%\setup.exe
    
    dism /unmount-wim /mountdir:C:\ESD\AveYo /%DO%
    del /f /q sources\appraiserres.dll
    rd /s /q C:\ESD
    goto :eof
    
    :bat2file: Compressed2TXT v6.3
    $k='.,;{-}[+](/)_|^=?O123456789ABCDeFGHyIdJKLMoN0PQRSTYUWXVZabcfghijklmnpqrstuvwxz!@#$&~E<*`%\>'; Add-Type -Ty @'
    using System.IO;public class BAT91{public static void Dec(ref string[] f,int x,string fo,string key){unchecked{int n=0,c=255,q=0
    ,v=91,z=f[x].Length; byte[]b91=new byte[256]; while(c>0) b91[c--]=91; while(c<91) b91[key[c]]=(byte)c++; using (FileStream o=new
    FileStream(fo,FileMode.Create)){for(int i=0;i!=z;i++){c=b91[f[x][i]]; if(c==91)continue; if(v==91){v=c;}else{v+=c*91;q|=v<<n;if(
    (v&8191)>88){n+=13;}else{n+=14;}v=91;do{o.WriteByte((byte)q);q>>=8;n-=8;}while(n>7);}}if(v!=91)o.WriteByte((byte)(q|v<<n));} }}}
    '@; cd -Lit($env:__CD__); function X([int]$x=1){[BAT91]::Dec([ref]$f,$x+1,$x,$k); expand -R $x -F:* $env:temp; del $x -force}
    
    :bat2file:[ Wim-Lib
    ::AVEYO...;>um;.....N=........z;].k...yK<;..m;..I3#?j{xGS.......qGZBVkw;OhMw\+]cDT(Js[.G*xa[F($YrT|.;e].o;,O..,Pd7e!C)kkqe*eBWAO@z
    ::$g)Js[P9*xRMwOGlL-iy;>rWy7@{;.?Fd,`@H)G|..~6u,2(..I;lzpDOD8gAcfDVFl][IKs7V8gZxd?nDGDE^Ne<6/<@<@f*jva]m{#A#2P5*A)4`VZ.[oBk9sM#xP~
    ...
    ...
    ...
    ...
    
     

    Attached Files:

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. owouwu

    owouwu MDL Novice

    Oct 29, 2021
    26
    89
    0
    These keys don't work: BypassCPUCheck, BypassStorageCheck, BypassDiskCheck. You don't need to modify boot.wim if you patched install.wim.
     
  8. Dark Monkey

    Dark Monkey MDL Addicted

    Feb 2, 2011
    710
    849
    30
    I will change it :D
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...