abbodi1406's Batch Scripts Repo

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

  1. fabricio simoes

    fabricio simoes MDL Member

    Dec 17, 2020
    139
    27
    10
    #3381 fabricio simoes, Oct 8, 2024
    Last edited: Oct 8, 2024

    Will a new W10UI update be released, compatible with Windows 11 24h2 updates?
     
  2. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,195
    90,695
    340
    That doesn't seem caused by the script

    since when base .1 packages are permanent? :g:
    this the first time i see WinPE-Rejuv-Package removal failed
     
  3. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,934
    4,149
    60
    I ran it the second time and got the same result, there was no such error in previous versions of the script
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,195
    90,695
    340
    compared to https://forums.mydigitallife.net/posts/1855819/
    a cleanup was executed on mounted winre.wim before "Saving image" and "Adding LCU for boot.wim"

    that what probably permanized WinPE-Rejuv-Package

    (cleanup was always skipped with LCU msu, but now it's not with expanded wim+psf)

    thanks for finding and testing new scenario :D
     
  5. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,195
    90,695
    340
  6. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,195
    90,695
    340
    W10UI v10.47

    - 24H2: Always install/reinstall all LCU(s) one by one per version

    - 24H2: Remove the block for NetFx3 feature with multiple LCUs

    - 24H2: Add option "LCUmsuExpand":
    expand LCUs and install via update.mum, instead adding msu files directly
    default state is OFF

    - Update PSFExtractor code to support the new PA31 format, using UpdateCompression.dll

    - Detect Package_for_SafeOSDU update for all builds

    - Show the Configured Options (only the applicable enabled options)

    ----
    uup-converter v109

    - Implement same changes as W10UI

    - Implement support to add LanguageExperiencePack (LXP) files along with other Apps
    unless SkipApps is enabled, LXPs will be always added if detected, regardless AppsLevel or CustomList (or no Apps for Server editions)

    -----
    huge thanks to @Paul Mercer, and @Enthousiast and anyone involved for verifying and testing
     
  7. diy371

    diy371 MDL Member

    Jan 28, 2013
    163
    276
    10
    can you consolidation kb5043080.msu and kb5044284.msu to only one esd ?
     
  8. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,195
    90,695
    340
    No

    each update payload files are standalone

    KB5044284 recognize KB5043080 files only when added to WinSxS, or UpdateAgent.dll generate them during msu installation
     
  9. Outbreaker

    Outbreaker MDL Senior Member

    Jan 20, 2018
    333
    85
    10
    Did anyone run into problems when using the W10UI cleanup option with 24H2 (26100.1 + .1742 + .2033)?
     
  10. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,934
    4,149
    60
    what problems exactly? most of them are because of the broken en-us langpack on both server and client editions, not because of cleanup
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. Outbreaker

    Outbreaker MDL Senior Member

    Jan 20, 2018
    333
    85
    10
    #3391 Outbreaker, Oct 9, 2024
    Last edited: Oct 9, 2024
    2-3 weeks ago I read a few posts about cleanup problems on 24H2 but I didn't figured out what exactly that problem was. :1eye:
     
  12. pp03

    pp03 MDL Addicted

    Apr 12, 2014
    566
    94
    30
    another error :(
     

    Attached Files:

    • 1.png
      1.png
      File size:
      102.8 KB
      Views:
      30
  13. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,934
    4,149
    60
    I bet something is wrong with your storage drive
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. pp03

    pp03 MDL Addicted

    Apr 12, 2014
    566
    94
    30
    #3394 pp03, Oct 9, 2024
    Last edited by a moderator: Oct 9, 2024
    this is from dismlcu.log:
    Code:
    2024-10-09 09:18:01, Error                        Failed to create deviceGatherer object: HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND)
    2024-10-09 09:18:01, Info                         arbiter: Failed to populate app inventory, assume the inventory was collected
    2024-10-09 09:18:01, Info                         Device: has Group: Edge, FMID: (null), Feature: EdgeBrowser
    2024-10-09 09:18:01, Info                         Device: has Group: Edge, FMID: (null), Feature: EdgeWebView
    2024-10-09 09:18:01, Info                         QueryValue - EnableVirtualizationBasedSecurity: HRESULT_FROM_NT(STATUS_OBJECT_NAME_NOT_FOUND)
    2024-10-09 09:18:01, Error                        GetRegValue - \Registry\Machine\SYSTEM\CurrentControlSet\Control\DeviceGuard, EnableVirtualizationBasedSecurity: HRESULT_FROM_NT(STATUS_OBJECT_NAME_NOT_FOUND)
    2024-10-09 09:18:01, Error                        GetRegValue (dword) failed: HRESULT_FROM_NT(STATUS_OBJECT_NAME_NOT_FOUND)
    2024-10-09 09:18:01, Error                        arbiter: Failed to get EnableVirtualizationBasedSecurity value.: HRESULT_FROM_NT(STATUS_OBJECT_NAME_NOT_FOUND)
    2024-10-09 09:18:01, Error                        Failed to populate Hot Patch Eligibility.: HRESULT_FROM_NT(STATUS_OBJECT_NAME_NOT_FOUND)
    2024-10-09 09:18:01, Info                         Arbiter: Desktop servicing : CheckIfIntermediateBaselinesMissing, OS version: 10.0.26100.1742 Target LCU version: 10.0.26100.2033
    2024-10-09 09:18:01, Error                        Arbiter: Desktop servicing : CheckIfIntermediateBaselinesMissing, Available OS revision: 1 Required LCU revision: 1742
    2024-10-09 09:18:01, Error                        One or more prerequisite baselines are missing: 800f0838 [Error,Facility=(000f),Code=2104 (0x0838)]
    2024-10-09 09:18:01, Error                        Arbiter: Failed to check servicing: 800f0838 [Error,Facility=(000f),Code=2104 (0x0838)]
    2024-10-09 09:18:01, Error                        Failed to DetermineOperationType: 800f0838 [Error,Facility=(000f),Code=2104 (0x0838)]
    2024-10-09 09:18:01, Error                        Failed to plan operation: 800f0838 [Error,Facility=(000f),Code=2104 (0x0838)]
    2024-10-09 09:18:01, Info                         arbiter: Unloading hive: \??\C:\W10MUIMOUNT\install\Windows\System32\config\COMPONENTS
    2024-10-09 09:18:01, Info                         arbiter: Unloading hive: \??\C:\W10MUIMOUNT\install\Windows\System32\config\SOFTWARE
    2024-10-09 09:18:01, Info                         arbiter: Unloading hive: \??\C:\W10MUIMOUNT\install\Windows\System32\config\SYSTEM
    2024-10-09 09:18:01, Info                         arbiter: --- CreateActionlist end with result: -2146498504 ---
    2024-10-09 09:18:01, Error                        Failed to create action list.: 800f0838 [Error,Facility=(000f),Code=2104 (0x0838)]
    2024-10-09 09:18:01, Error                        Failed to create action list.: 800f0838 [Error,Facility=(000f),Code=2104 (0x0838)]
    2024-10-09 09:18:01, Error                        CDeploymentSession::CallCreateActionList(6591): Result = 0x800F0838
    2024-10-09 09:18:01, Error                        CreateActionList failed. Error: 800f0838 [Error,Facility=(000f),Code=2104 (0x0838)]
    2024-10-09 09:18:01, Info                         GenerateDownloadRequest: Exit
    2024-10-09 09:18:01, Info                         OnError: [0x800F0838]
    2024-10-09 09:18:01, Info                         WatsonHelper: Setting bucket parameter [3]: [0x800F0838]
    2024-10-09 09:18:01, Info                         Error is fatal: [TRUE]. UpdateResult: [1].
    2024-10-09 09:18:01, Info                         [Plugins]::Serialize: 0 plugins present
    2024-10-09 09:18:01, Info                         WatsonHelper: Setting bucket parameter [2]: [1]
    2024-10-09 09:18:01, Info                         WatsonHelper: No opt-in
    2024-10-09 09:18:01, Info                         ReportEventDownloadRequestEnd: ExtensionName               = [OS]
    2024-10-09 09:18:01, Info                         ReportEventDownloadRequestEnd: hr                          = [0x800F0838]
    2024-10-09 09:18:01, Info                         ReportEventDownloadRequestEnd: InternalFailureResult       = [0x0]
    2024-10-09 09:18:01, Info                         ReportEventDownloadRequestEnd: result                      = [1]
    2024-10-09 09:18:01, Info                         ReportEventDownloadRequestEnd: RangeRequestState           = [0]
    2024-10-09 09:18:01, Info                         ReportEventDownloadRequestEnd: DeletedCorruptFiles         = [0]
    2024-10-09 09:18:01, Info                         ReportEventDownloadRequestEnd: DownloadRequests            = [0]
    2024-10-09 09:18:01, Info                         ReportEventDownloadRequestEnd: PackageCountTotal           = [0]
    2024-10-09 09:18:01, Info                         ReportEventDownloadRequestEnd: PackageCountRequired        = [0]
    2024-10-09 09:18:01, Info                         ReportEventDownloadRequestEnd: PackageCountOptional        = [0]
    2024-10-09 09:18:01, Info                         ReportEventDownloadRequestEnd: DownloadedSizeCanonical     = [0]
    2024-10-09 09:18:01, Info                         ReportEventDownloadRequestEnd: DownloadedSizePSFX          = [0]
    2024-10-09 09:18:01, Info                         ReportEventDownloadRequestEnd: DownloadedSizeDiff          = [0]
    2024-10-09 09:18:01, Info                         ReportEventDownloadRequestEnd: DownloadedSizeExpress       = [0]
    2024-10-09 09:18:01, Info                         ReportEventDownloadRequestEnd: PackageCountTotalCanonical  = [0]
    2024-10-09 09:18:01, Info                         ReportEventDownloadRequestEnd: PackageCountTotalPSFX       = [0]
    2024-10-09 09:18:01, Info                         ReportEventDownloadRequestEnd: PackageCountTotalDiff       = [0]
    2024-10-09 09:18:01, Info                         ReportEventDownloadRequestEnd: PackageCountTotalExpress    = [0]
    2024-10-09 09:18:01, Info                         ReportEventDownloadRequestEnd: PackageExpressType          = [FALSE]
    2024-10-09 09:18:01, Info                         ReportEventDownloadRequestEnd: PackageCategoriesSkipped    = [0x0]
    2024-10-09 09:18:01, Info                         ReportEventDownloadRequestEnd: ContainsSafeOSDUPackage     = [FALSE]
    2024-10-09 09:18:01, Info                         ReportEventDownloadRequestEnd: ContainsReinstallCurrentLCU = [FALSE]
    2024-10-09 09:18:01, Info                         ReportEventDownloadRequestEnd: IsOnPremScenario            = [FALSE]
    2024-10-09 09:18:01, Info                         ReportEventDownloadRequestEnd: SandboxTaggedForReserves    = [FALSE]
    2024-10-09 09:18:01, Info                         ReportEventDownloadRequestEnd: DownloadComplete            = [FALSE]
    2024-10-09 09:18:01, Info                         ReportEventDownloadRequestEnd: CancelRequested             = [FALSE]
    2024-10-09 09:18:01, Info                         ReportEventDownloadRequestEnd: NumberOfHops                = [0]
    2024-10-09 09:18:01, Error                 DISM   DISM Package Manager: PID=10324 TID=5952 Failed getting the download request. - CDISMPackageManager::processWithUpdateAgent(hr:0x800f0838)
    2024-10-09 09:18:01, Info                         Deleting non payload files from sandbox.
    2024-10-09 09:18:01, Info                         Deleting C:\W10MUITEMP\updtemp\CCF451F9-4D57-48A7-8F2D-38E0E8E6407F\windlp.state.xml
    2024-10-09 09:18:01, Info                         Deleting C:\W10MUITEMP\updtemp\CCF451F9-4D57-48A7-8F2D-38E0E8E6407F\windlp.state-old.xml
    2024-10-09 09:18:01, Info                         UpdateAgent logging ends.
    2024-10-09 09:18:01, Error                 DISM   DISM Package Manager: PID=10324 TID=5952 Failed to install UUP package. - CMsuPackage::DoInstall(hr:0x800f0838)
    2024-10-09 09:18:01, Error                 DISM   DISM Package Manager: PID=10324 TID=5952 Failed to execute the install in expanded MSU folder C:\W10MUITEMP\updtemp\CCF451F9-4D57-48A7-8F2D-38E0E8E6407F. - CMsuPackage::processMsu(hr:0x800f0838)
    2024-10-09 09:18:01, Error                 DISM   DISM Package Manager: PID=10324 TID=5952 Failed to apply the MSU unattend file to the image. - CMsuPackage::Install(hr:0x800f0838)
    
     
  15. garf02

    garf02 MDL Member

    Sep 15, 2007
    185
    71
    10
    @abbodi1406
    For this option 'Add option "LCUmsuExpand"' in Win11 24H2 is it better to activate it or leave it deactivated
     
  16. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,934
    4,149
    60
    It's off by default for safety reasons only
    It's faster to expand all LCU, nothing else, but you can't just integrate update.mum without some registry tweaking
    If you can wait then it should be disabled
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. pp03

    pp03 MDL Addicted

    Apr 12, 2014
    566
    94
    30
    same on another pc
     

    Attached Files:

    • 4.png
      4.png
      File size:
      45.3 KB
      Views:
      9
  18. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,934
    4,149
    60
    what is your source ISO, updates set (build) and W10UI.ini?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. pp03

    pp03 MDL Addicted

    Apr 12, 2014
    566
    94
    30
    #3399 pp03, Oct 9, 2024
    Last edited by a moderator: Oct 9, 2024
    source iso 26100.1742 enterprise ltsc eval en-us, .2033 update

    w10ui.ini:
    Code:
    [W10UI-Configuration]
    Target        =
    Repo          =
    DismRoot      =dism.exe
    
    Net35         =0
    Net35Source   =
    Cleanup       =1
    ResetBase     =1
    LCUwinre      =0
    WinRE         =0
    LCUmsuExpand  =0
    UpdtBootFiles =0
    SkipEdge      =0
    SkipWebView   =0
    UseWimlib     =0
    
    _CabDir       =W10UItemp
    MountDir      =W10UImount
    WinreMount    =W10UImountre
    
    wim2esd       =0
    wim2swm       =0
    ISO           =1
    ISODir        =
    Delete_Source =0
    
    AutoStart     =0
    
    AddDrivers    =0
    Drv_Source    =\Drivers
    
     
  20. Paul Mercer

    Paul Mercer MDL Expert

    Apr 6, 2018
    1,934
    4,149
    60
    Wait, why Eval? You can't activate that
    Full editions are available

    I don't think anyone would want to update Eval ISO
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...