abbodi1406's Batch Scripts Repo

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

  1. Flipp3r

    Flipp3r MDL Guru

    Feb 11, 2009
    2,018
    968
    90
    The error code is 255 which is generic. Dism log shows "The Data is Invalid" :
    Code:
    [3020.1868] [0x8007000d] [ReadWriteDataInternal:(181) -> hFile=0000000000000248, liOffset=0x350eee3be, cbData=0x1562490, dwBytes = 0x0]: The data is invalid.
    [3020.1868] [0x8007000d] ReadChunk:(1647): The data is invalid.
    On the same system/notebook, dism would either complete or RANDOMLY fail (code 255) at any %. 60, 78, 80% whatever. Wimlib has always worked.
    This only happens using the latest winpe...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,325
    91,565
    340
    That didn't occur my mind, it would be useful indeed

    currently, only expanded wim is set
    but it will not work with multiple LCUs
     
  3. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,950
    4,180
    60
    I thought this version was working with expanded wim

    Code:
    NetFxLCU: Windows11.0-KB5041872-x64.wim
    -----
    windows11.0-kb5041872-x64_LCU_1542.1.1.msu
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.26120.1542
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~26100.1542.1.1
    [==========================100.0%==========================]
    The operation completed successfully.

    it didn't trigger LCU reinstallation in WU after nfx35, but it wasn't possible to install other FoDs


    p.s. if you mean released version then I know, I just want to have different test versions for future dev patches
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,325
    91,565
    340
    Yes, but this test version does not properly reinstall highest LCU, updated NetFx3-OnDemand will be skipped due missing base version from lower LCU
     
  5. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,325
    91,565
    340
  6. VDev

    VDev MDL Member

    Sep 9, 2015
    121
    64
    10
    May ADK 2024 brought some performance improvements on my old Windows 10 with skylake which used to take an entire day with W10UI and testing different editions in a VM. It seems Windows 11 is a hot mess and in-place upgrade with my ISO nearly wiped out my PIN and Hello Face login.

    So how come your script can detect Win ADK location but Win 11 cannot in cmd,pwsh and terminal. In windows 10 aliasing the new dism worked fine. On Windows 11 I'll stick with system dism or even upgrade to 24H2 since lenovo has provided driver updates.

    I underestimated Ryzen 8840HS as it was able to complete all the process skylake took a day in just 4 hrs while consuming <30W. Its sad to see Windows 10 dying next year.

    You can actually integrate the switchless netfx35 version abbodi makes with switches /ai and it won't increase image size and enable better component cleanup to make the overall image smaller by 300MB per edition.
     
  7. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,325
    91,565
    340
    I just replicate ADK DandISetEnv.bat way to detect ADK path from registry, and prepend it to "PATH" environment variable
    ofc only for the current cmd session
     
  8. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,325
    91,565
    340
    #3228 abbodi1406, Sep 11, 2024
    Last edited: Sep 11, 2024
    (OP)
  9. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,950
    4,180
    60
    sounds like it should work with internet connection, maybe they'll release updated FoDs for WU / WSUS

    anyway, seems like it's better to skip nfx35 for multi LCUs for offline integration
    if we reinstall all of it one by one then cleanup makes no sense
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,325
    91,565
    340
    I don't think so
    online installation will just download and install the LCUs
     
  11. ЯƎHTͶAꟼ

    ЯƎHTͶAꟼ MDL Senior Member

    Jan 29, 2017
    350
    95
    10
    Heyho,

    2 "iusses":
    - Can't find my old post, was probably wrong place, but thing was a question, when I used W7MUI script (with also en-US default language set up) it still uses the added one when install in VM (auto generated unattended) any way to change that?
    - idk what I do wrong but after adding LP stuff to an 1607 LTSC the W10UI script refuse to add updates, output simply is empty.. idea what it could be? Can provide (/create) debug stuff if need.
     
  12. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,325
    91,565
    340
    - How can i know why?
    did you keep progress log? what options you set? dism logs?

    - Yes, run debug mode and share the log
     
  13. ЯƎHTͶAꟼ

    ЯƎHTͶAꟼ MDL Senior Member

    Jan 29, 2017
    350
    95
    10
    #3233 ЯƎHTͶAꟼ, Sep 15, 2024
    Last edited: Sep 23, 2024
    @abbodi1406
    Already tried several dism versions, think the build one probably best choice.
    Also tried to figure if its some update, could not find any source.
    The MUI one seems worked fine, but UI for that build has problems.

    While ago everything worked flawless, not sure what goes wrong right now..

    PW= 1234

    dism log folder was complete empty after the W10UI debug run..
    hope the logs can help anyway.
     
  14. VDev

    VDev MDL Member

    Sep 9, 2015
    121
    64
    10
    Well, I think I figured out the issue. I deleted WebView under System32 and also set SkipEdge and Webview to 0 causing a mess along with Ntlite's tweaked app compatibility. Reverted the app component selection and now skipped edge and webview updates.
    Anyway the in-place upgrade worked only with Stock after allowing it to be connected to internet to download new dynamic updates.
    Meanwhile, I uninstalled Windows ADK 24H2 and used system's version. The process only took 1.5hrs instead of 3 hrs on my new PC. Damn, Win 11 is still a mess.
    I pulled the latest script changes and ISO size is around 6.1GB same as stock with latest CU until ESD is used which saves 1GB.
     
  15. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,950
    4,180
    60
    source ISO (updated with W10UI) - 26100.1742.240906-0216.GE_RELEASE_SVC_PROD1_CLIENT_X64FRE_RU-RU.iso
    the date is 240906-0216 which looks fine (LCU was released on Sep 10, didn't check the real date)

    creating virtual editions with uup-converter-wimlib-108
    Code:
    [create_virtual_editions]
    vUseDism     =1
    vAutoStart   =1
    vDeleteSource=0
    vPreserve    =0
    vwim2esd     =0
    vwim2swm     =0
    vSkipISO     =0
    vAutoEditions=
    Code:
    === Extracting ISO file . . .
    
    "F:\zDone\26100.1742.240906-0216.GE_RELEASE_SVC_PROD1_CLIENT_X64FRE_RU-RU.iso"
    
    === Checking distribution Info . . .
    
    === Configured Virtual Options . . .
    
    UseDism
    AutoStart
    AutoEditions: ALL
    
    === Mounting Source Index: 1
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    === Creating Edition: Enterprise
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.26100.1742
    
    Starting to update components...
    Starting to install product key...
    Finished installing product key.
    
    Starting to apply edition-specific settings...
    Finished applying edition-specific settings.
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Saving image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Setting the FLAGS property of image 2 to "Enterprise".
    Setting the DISPLAYNAME property of image 2 to "Windows 11 Enterprise".
    Setting the DISPLAYDESCRIPTION property of image 2 to "Windows 11 Enterprise".
    Setting the NAME property of image 2 to "Windows 11 Enterprise".
    Setting the DESCRIPTION property of image 2 to "Windows 11 Enterprise".
    
    === Creating Edition: IoT Enterprise
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.26100.1742
    
    Starting to update components...
    Starting to install product key...
    Finished installing product key.
    
    Starting to apply edition-specific settings...
    Finished applying edition-specific settings.
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Saving image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Setting the FLAGS property of image 3 to "IoTEnterprise".
    Setting the DISPLAYNAME property of image 3 to "Windows 11 IoT Enterprise".
    Setting the DISPLAYDESCRIPTION property of image 3 to "Windows 11 IoT Enterprise".
    Setting the NAME property of image 3 to "Windows 11 IoT Enterprise".
    Setting the DESCRIPTION property of image 3 to "Windows 11 IoT Enterprise".
    
    === Creating Edition: IoT Enterprise Subscription
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.26100.1742
    
    Starting to update components...
    Starting to install product key...
    Finished installing product key.
    
    Starting to apply edition-specific settings...
    Finished applying edition-specific settings.
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Saving image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Setting the FLAGS property of image 4 to "IoTEnterpriseK".
    Setting the DISPLAYNAME property of image 4 to "Windows 11 IoT Enterprise Subscription".
    Setting the DISPLAYDESCRIPTION property of image 4 to "Windows 11 IoT Enterprise Subscription".
    Setting the NAME property of image 4 to "Windows 11 IoT Enterprise Subscription".
    Setting the DESCRIPTION property of image 4 to "Windows 11 IoT Enterprise Subscription".
    
    === Creating Edition: Enterprise multi-session
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.26100.1742
    
    Starting to update components...
    Starting to install product key...
    Finished installing product key.
    
    Starting to apply edition-specific settings...
    Finished applying edition-specific settings.
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Saving image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Setting the FLAGS property of image 5 to "ServerRdsh".
    Setting the DISPLAYNAME property of image 5 to "Windows 11 Enterprise multi-session".
    Setting the DISPLAYDESCRIPTION property of image 5 to "Windows 11 Enterprise multi-session".
    Setting the NAME property of image 5 to "Windows 11 Enterprise multi-session".
    Setting the DESCRIPTION property of image 5 to "Windows 11 Enterprise multi-session".
    
    === Creating Edition: Education
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.26100.1742
    
    Starting to update components...
    Starting to install product key...
    Finished installing product key.
    
    Starting to apply edition-specific settings...
    Finished applying edition-specific settings.
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Saving image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Setting the FLAGS property of image 6 to "Education".
    Setting the DISPLAYNAME property of image 6 to "Windows 11 Education".
    Setting the DISPLAYDESCRIPTION property of image 6 to "Windows 11 Education".
    Setting the NAME property of image 6 to "Windows 11 Education".
    Setting the DESCRIPTION property of image 6 to "Windows 11 Education".
    
    === Creating Edition: Pro Education
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.26100.1742
    
    Starting to update components...
    Starting to install product key...
    Finished installing product key.
    
    Starting to apply edition-specific settings...
    Finished applying edition-specific settings.
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Saving image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Setting the FLAGS property of image 7 to "ProfessionalEducation".
    Setting the DISPLAYNAME property of image 7 to "Windows 11 Pro Education".
    Setting the DISPLAYDESCRIPTION property of image 7 to "Windows 11 Pro Education".
    Setting the NAME property of image 7 to "Windows 11 Pro Education".
    Setting the DESCRIPTION property of image 7 to "Windows 11 Pro Education".
    
    === Creating Edition: Pro for Workstations
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.26100.1742
    
    Starting to update components...
    Starting to install product key...
    Finished installing product key.
    
    Starting to apply edition-specific settings...
    Finished applying edition-specific settings.
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Saving image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Setting the FLAGS property of image 8 to "ProfessionalWorkstation".
    Setting the DISPLAYNAME property of image 8 to "Windows 11 Pro for Workstations".
    Setting the DISPLAYDESCRIPTION property of image 8 to "Windows 11 Pro for Workstations".
    Setting the NAME property of image 8 to "Windows 11 Pro for Workstations".
    Setting the DESCRIPTION property of image 8 to "Windows 11 Pro for Workstations".
    
    === Creating Edition: SE
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image Version: 10.0.26100.1742
    
    Starting to update components...
    Starting to install product key...
    Finished installing product key.
    
    Starting to apply edition-specific settings...
    Finished applying edition-specific settings.
    
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Saving image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Setting the FLAGS property of image 9 to "CloudEdition".
    Setting the DISPLAYNAME property of image 9 to "Windows 11 SE".
    Setting the DISPLAYDESCRIPTION property of image 9 to "Windows 11 SE".
    Setting the NAME property of image 9 to "Windows 11 SE".
    Setting the DESCRIPTION property of image 9 to "Windows 11 SE".
    
    === Unmounting Source Index: 1
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.1150
    
    Image File : F:\uup-converter-wimlib-108\ISOFOLDER\sources\install.wim
    Image Index : 1
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    === Rebuilding install.wim . . .
    
    "ISOFOLDER\sources\install.wim" original size: 4458500 KiB
    Using LZX compression with 8 threads
    Archiving file data: 9 GiB of 9 GiB (100%) done
    "ISOFOLDER\sources\install.wim" optimized size: 4431115 KiB
    Space saved: 27385 KiB
    
    === Creating ISO . . .
    
    OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility
    Copyright (C) Microsoft, 1993-2012. All rights reserved.
    Licensed only for producing Microsoft authorized content.
    
    
    Scanning source tree (1000 files in 93 directories)
    Scanning source tree complete (1052 files in 98 directories)
    
    Computing directory information complete
    
    Image file is 5435686912 bytes (before optimization)
    
    Writing 1052 files in 98 directories to 26100.1742.240915-2245.GE_RELEASE_SVC_PROD1_CLIENTMULTI_X64FRE_RU-RU.ISO
    
    100% complete
    
    Storage optimization saved 66 files, 15792128 bytes (1% of image)
    
    After optimization, image file is 5422366720 bytes
    Space saved because of embedding, sparseness or optimization = 15792128
    
    Done.
    
    Finished.
    Press 0 or q to exit.

    the name is 26100.1742.240915-2245.GE_RELEASE_SVC_PROD1_CLIENTMULTI_X64FRE_RU-RU.ISO
    Sep 15 is definitely the wrong date

    it was fine a month ago, so something has changed
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,325
    91,565
    340
    @Paul Mercer
    Can you open install.wim and check the modified date for "Windows\Servicing\Packages\Package_for_RollupFix*.mum"?

    this where create_virtual_editions takes the date as fallback if the files with fixed date has lower version than LCU

    W10UI and convert-UUP has the same fallback, but they detect the date of Package_for_RollupFix*.mum before integration

    in my tests up to 26100.1350 LCU, the original date of integrated Package_for_RollupFix*.mum was preserved
    if they changed the behavior, i will extend this workaround to all 22621+ builds:
    - Limit LCU .mum timestamp workaround for builds 22621+ < 26052
     
  17. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,950
    4,180
    60
    111.jpg

    yeah, timestamp is integration date somehow

    i just built new base edition (because apps were available this time) and updated it with W10UI
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,325
    91,565
    340
    Thanks

    if you would like to verify the workaround, edit W10UI and search for:
    Code:
    if %_build% geq 26052 goto :cuwd
    :: comment or remove the line
     
  19. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,950
    4,180
    60
    222.jpg

    modified date is now correct, seems like the limiter should be removed
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  20. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,325
    91,565
    340
    - W10UI_Debug
    you specified "Updates" for repo, which is the culprit
    you must set "Repo" to the full path of updates location

    for processing, W10UI.cmd change current directory to the Extraction Directory, thus, it fail to find your updates

    - MUI
    W10MUI.cmd only support detecting updates files from the subdirectory "Updates"

    i will see if i can update it to check location from W10UI.ini
    maybe also implement support for W10MUI.ini