abbodi1406's Batch Scripts Repo

Discussion in 'Scripting' started by abbodi1406, May 4, 2017.

  1. VDev

    VDev MDL Member

    Sep 9, 2015
    121
    64
    10
    Hi @abbodi1406 I had a doubt with W10UI on Win 11 24H2 amd64 ISO regarding this setting in W10UI.ini
    Code:
    SkipWebView=0
    When it's set to 1 does it update the built-in system web2view runtime in this path
    Code:
    "C:\Windows\System32\Microsoft-Edge-WebView"
    I had removed Edge and WebView in offline ISO using hidden Dism /Remove-Edge instead of removing just the browser like I did last time without affecting Dism image health. Widgets and MS Store are working.
    The odd thing is I didn't integrate CU updates via W10UI and simply used base image for testing. The final ISO was 4.2GB with install.wim and 3.8GB with install.esd. It's really smooth even with 2 cores and 4GB and even scaled up to 8 cores and 8GB RAM in Hyper V for both Home and Pro Editions.

    For people who are using NTLite to remove components with latest version
    Code:
    v2024.11.10167
    update their xml settings since there are more components to be removed MS teams, DevHome etc without breaking Webview components.

    Will try W10UI on arm64 ISO as well if needed.

    Thank you as always!
     
  2. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,190
    90,665
    340
    @VDev
    SkipWebView is not for Win 11 24H2
    Code:
    10.43:
    - Add Edge-WebView suppressor for builds 19041+ < 26080
    - Add config option "SkipWebView" to control the new suppressor
    Win 11 24H2 inbox "Microsoft-Edge-WebView" is FOD package, you can disable or remove (but that will mostly affect OS functions)
     
  3. VDev

    VDev MDL Member

    Sep 9, 2015
    121
    64
    10
    No it won't unless you remove backup WebView included within System32
    Code:
    "C:\Windows\System32\Microsoft-Edge-WebView"
    If you remove the System32 even though you didn't uninstall latest slipstreamed Edge Browser Enterprise it runs into all problems with Windows 11 23H2 and above. I tried to compact the OS offline image which didn't work like we discussed in my earlier observations.
    Windows 11 2024 is really *slick* without Edge Browser included. I started using ungoogled-chromium as backup if some sites don't work in Firefox. Chrome/Chromium is the new IE6/11.
     
  4. VDev

    VDev MDL Member

    Sep 9, 2015
    121
    64
    10
    @abbodi1406 an update for people using latest May 2024 ADK on Windows 10. After applying Nov 2024 CU the dism servicing is very slow and command alias which was working before isn't working anymore. It seems MSFT seems to be limiting performance of installed ADK dism version and gives unrestricted access to system default dism. I'm on Win 10 22H2 and servicing took 7 hrs to complete which was a shocker for me.
    It seems MSFT wants to ruin Win10 just like Win11 and wants everyone to jump ship to Linux and use Wine or proton to use MSO 365 and games. Thought of buy additional ESU plan but thinking otherwise.
     
  5. mx101

    mx101 MDL Junior Member

    Aug 12, 2015
    52
    19
    0
    #3485 mx101, Nov 20, 2024
    Last edited by a moderator: Nov 21, 2024
    I get this error on W10UI_10.47r.
    Code:
    Processing 1 of 1 -
    [==========================100.0%==========================]
    [===========================73.0%==========                ] C:\W10UItemp_20351\LCUall\01742-Windows11.0-KB5043080-x64.msu: An error occurred applying the Unattend.xml file from the .msu package.
    For more information, review the log file.
     Error: 0x800f081f
    
    Error: 0x800f081f
    
    DISM failed. No operation was performed.
    For more information, review the log file.
    
     
  6. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,647
    103,306
    450
    It would help if you share some important info too, like the build, the offered updates and the full progress.

    Seems you didn't offer both LCUs needed for proper integration in 26100.
    Here you can find all needed updates for 26100: https://forums.mydigitallife.net/posts/1830860

    Specificallly these 2:
     
  7. mx101

    mx101 MDL Junior Member

    Aug 12, 2015
    52
    19
    0
    I try integrate Windows11.0-KB5046740-x64.msu

    from build 26100.2448 to 26100.2454

    I have in my folder: DesktopDeployment.cab, Windows11.0-KB5043080-x64.msu, Windows11.0-KB5046740-x64.msu and ddd5b1a0-6f79-408b-ad0c-b177d72ed65b.AggregatedMetadata.cab
     
  8. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,647
    103,306
    450
    #3488 Enthousiast, Nov 20, 2024
    Last edited: Nov 20, 2024
    Is an insider preview level update and is psf+wim, you need to create the MSU with PSFX2MSU first and next you can use the new MSU for integration.

    Iirc, W10UI/dism doesn't handle psf+wim directly.
     
  9. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,190
    90,665
    340
    Did you ran Dism cleanup on 26100.2448?
     
  10. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,190
    90,665
    340
    You should try ADK 22000, works fine for me to service Win11 24H2

    to service Win10, either use ADK 19041, or system Dism
     
  11. mx101

    mx101 MDL Junior Member

    Aug 12, 2015
    52
    19
    0
    Yes
     
  12. VDev

    VDev MDL Member

    Sep 9, 2015
    121
    64
    10
    Tried with Windows 11 on a shiny new PC with 8840HS and update integration is even slower than skylake. I used stock W11 23H2 dism version and it seems November update introduced something since both PCs have been installed with respective updates.
    5% overall utilization with 8840HS and 12% overall utilization on 6700HQ.
    Honestly speaking 24H2 update integration is very quick on 8840HS and slower on 6700HQ due to PSFX update. It seems I need to hold back on windows updates yet again.
    Sorry for wasting your time.
     
  13. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,190
    90,665
    340
    Check power efficiency mode / EcoQoS or whatever it's called

    UpdateAgent.dll is designed to utilize it on thread level
     
  14. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,190
    90,665
    340
    You should not

    in-place upgrade is the easy way to fix
     
  15. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,190
    90,665
    340
  16. liliactr

    liliactr MDL Addicted

    Sep 3, 2009
    530
    188
    30
    Can you make a standalone wim index creation time script from theese that takes user desired time as input. I think theese codes do that. Grabbed from windows 7 topic.

    Code:
    echo===============================================
    echo Setting last modification date...
    echo===============================================
    for /f "tokens=3 delims=: " %%i in ('%_wimlib% info "TEMP\WIM\aio.install.wim" ^| findstr /c:"Image Count" 2^>nul') do set "images=%%i"
    for /L %%i in (1,1,%images%) do (
    for /f "tokens=3 delims=<>" %%a in ('Bin\imagex /info "TEMP\WIM\aio.install.wim" %%i ^| find /i "<HIGHPART>" 2^>nul') do set "HIGHPART=%%a"
    for /f "tokens=3 delims=<>" %%a in ('Bin\imagex /info "TEMP\WIM\aio.install.wim" %%i ^| find /i "<LOWPART>" 2^>nul') do set "LOWPART=%%a"
    %_wimlib% info "TEMP\WIM\aio.install.wim" %%i --image-property CREATIONTIME/HIGHPART=!HIGHPART! --image-property CREATIONTIME/LOWPART=!LOWPART! >nul
    )
     
  17. lenyu

    lenyu MDL Novice

    May 8, 2020
    18
    2
    0
    Hi abbodi,

    first of all, thanks for your great work !

    I need to "manually" port Net Framework 4.8 from a full Windows 8.0 installation into an old installation that only have Net Framework 4.0:

    I've copied this folder from the full 8.0 installation with net 4.8 installed into the installation that only have 4.5:
    c:\Windows\Microsoft.NET

    and I've also tried to export all registry keys using Registry Finder program, searching for "framework" and then right click > export, but I miss something

    , but I don't know exactly all the keys I need to export.

    Can somebody help me?

    I know I can made a fresh install of 8.0 without net 4.8, export the registry, then install 4.8 and export again and compare with some tool like WinMerge and export the difference to get the new keys but I'm not sure if this will be enough or if it's easy to do.

    Do you have any .cmd / .bat ready made script or it's easy to capture the keys and made a script to easily export the missing entries to the lightweight w8.0 installation?

    Of course it's not possible to install 4.8 the normal way (using the installer) into the customized windows because it was made with nlite back in the day and I can't add or remove components because of this.

    I'm sure it can be working with the "copy - pasted" way if I export the missing keys from a working installation, cause the more missing entries I add, the less errors I get each time I try to run a 4.8 compatible application into the customized 8.0 installation.

    Please, help me, I don't want to install the full OS on that installation since I'm sure it doesn't have telemetry updates and works like a charm.

    Thanks :)
     
  18. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,190
    90,665
    340
  19. lenyu

    lenyu MDL Novice

    May 8, 2020
    18
    2
    0
    Thanks @abbodi1406

    I'm trying... but currently I get this error when I try to run net based app:

    VCRUNTIME140_CLR0400.dll is missing from your computer

    it's strange because this file isn't present on the full w8 installation that contains 4.8
     
  20. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,190
    90,665
    340
    I can see it's included with KB4486081
    how did you install 4.8 on w8?