abbodi1406's Batch Scripts Repo

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

  1. June's Hill

    June's Hill MDL Member

    Jul 1, 2021
    101
    127
    10
    First, thank you for your response, dear abbodi1406 :)

    I also never use Secure Boot, because my HP BIOS/UEFI Default Settings disable that option, and I don't want to use it because in the future I can boot to Linux without any problems.

    Ok, so the default setting of "UpdtBootFiles=0" is currently recommended, because we know very well it will work from ancient to newest UEFI, unlike the "2023 UEFI" that maybe cannot boot in old motherboards.
     
  2. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream
    Staff Member

    Dec 21, 2012
    7,207
    8,757
    240
    With SecureBoot disabled, or in CSM/BIOS Legacy mode, the choice of 2011 vs. 2023 UEFI is actually irrelevant. You can always install from a trusted source with SecureBoot disabled, update the OS, and then enable it again, if you want.

    SecureBoot is only relevant with non-trusted sources.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. 12 lb Turkey

    12 lb Turkey MDL Member

    Nov 24, 2022
    133
    82
    10
    If you add the CA 2023 cert to the UEFI's DB (allow list), but don't add CA 2011 to DBX (disallow list) -- then you can boot from either version with Secure Boot enabled.
     
  4. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream
    Staff Member

    Dec 21, 2012
    7,207
    8,757
    240
    Yeah, but you have to do it manually, and never run the Windows DBX update, as that one will update the blacklist, too.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. June's Hill

    June's Hill MDL Member

    Jul 1, 2021
    101
    127
    10
    So, to avoid any problem, and have the totally confidence your Windows/Linux ISO will boot, you can have always Secure Boot disabled. Because in reality, there's a more important setting you always have to enable: BIOS Password (for Setup/Configuration and Boot-Menu).

    Because an advanced user will always get/generated Windows ISOs from trusted source (UUP Dump, or SFV+GenuineVerification). Also, if someday a user wants to boot/install Linux, and has NVIDIA GPU, it's very recommended to disable permanently Secure Boot.

    This feature is oriented to people that don't have BIOS Password and want to prevent a malicious device to Boot in the computer/laptop. But again, without password, a bad guy can enter very easily to BIOS Setup, disable "SB" and boot whatever he wants.
     
  6. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream
    Staff Member

    Dec 21, 2012
    7,207
    8,757
    240
    BIOS/UEFI passwords are not very secure, unless it's a SecureCore (or similar tech) firmware.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. June's Hill

    June's Hill MDL Member

    Jul 1, 2021
    101
    127
    10
    Anyway, it's always recommended to Encrypt your Hard Drive if you have important files. Of course if that's only a Gaming PC and no more than that, the security is no so important.
     
  8. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,597
    93,459
    340
    https://github.com/gravesoft/CAS/tree/main/exe

    # Added .NET Framework console application to display the status without the need for Windows Powershell

    - runs with NetFx 3.5/2.0 family or 4.x family
    - works on Windows XP or later
    - supports the same features and command line parameters as equivalent powershell script
    - does not implement vNextDiag.ps1 functions (yet)

    use the Download ZIP from Code button to download the files properly
    (.exe.config file is needed to run on either NetFx 4 or 2)
     
  9. Dictation354

    Dictation354 MDL Novice

    Jul 12, 2022
    19
    18
    0
    Microsoft has blocked Shift+F10 in OOBE in latest updates. Can you add an option in W10UI to add bypassnro registry when making ISOs? Thanks in advance.

    Registry:

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE]
    "BypassNRO"=dword:00000001
     
  10. shhnedo

    shhnedo MDL Expert

    Mar 20, 2011
    1,911
    2,589
    60
    You can still implement it through unattend.xml in $OEM$ folder.
    Code:
    <settings pass="specialize">
        <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" language="neutral" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" publicKeyToken="31bf3856ad364e35" versionScope="nonSxS">
          <RunSynchronous>
            <RunSynchronousCommand wcm:action="add">
              <Order>1</Order>
              <Path>reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE /v BypassNRO /t REG_DWORD /d 1 /f</Path>
            </RunSynchronousCommand>
          </RunSynchronous>
        </component>
      </settings>
     
  11. Dictation354

    Dictation354 MDL Novice

    Jul 12, 2022
    19
    18
    0
    Thank you very much.
     
  12. LiteOS

    LiteOS Windowizer

    Mar 7, 2014
    2,377
    1,087
    90
  13. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,597
    93,459
    340
    Display Name does not matter
     
  14. ЯƎHTͶAꟼ

    ЯƎHTͶAꟼ MDL Senior Member

    Jan 29, 2017
    364
    100
    10
    #3714 ЯƎHTͶAꟼ, Jul 2, 2025 at 01:51
    Last edited: Jul 2, 2025 at 03:09
    Heyho

    Probably it's here the better place to ask:
    Another thing: Some feature request/wish:
    Option to make possible to chose edition while install-process.

    Or just... how to make it? I don't remember how it was possible with LTS boot etc.
    (I'm just used to create multi-choice [several sku based editions) images)
    Earlier it was with the removal of ei.cg but now/with LTS.. seems different or messed up some idk.
    With NTLite it works, but would love to make it by the script and using NTLite only for customizing.

    Now I see why I forgot how to make it: unattended.xml (that I only put in customs, not the to "untouched" updated one. I hope they will improve install.wim mechanic soon - its too unflexible )
    Well, I guess it's time to generalize one (like what you can choose whatever for kind of customers)
    So not just make one normal OEM-like, nope, that one that fits 24000 till 26200+ while it's doing prework. lol.

    So I guess its time for copy the section of some other script, that I modified in a way it "pause" before creating iso.
     
  15. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,597
    93,459
    340
    jump from what to what?
    you just want to create iso manually?
     
  16. ЯƎHTͶAꟼ

    ЯƎHTͶAꟼ MDL Senior Member

    Jan 29, 2017
    364
    100
    10
    Yep, how to make the script only picks and put build number in the name and build the iso then etc.
    I guess its only a few lines via cmd, but idk what to write exactly... I would like to do it with dism + oscdimg only instead of other tools.
     
  17. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,597
    93,459
    340
    Just do it manually
    the script detect and set label name based on various factors / stages
     
  18. ЯƎHTͶAꟼ

    ЯƎHTͶAꟼ MDL Senior Member

    Jan 29, 2017
    364
    100
    10
    Damn, I was afraid of that. Okay, then I'll start all over again with my “AIOs”. It's very much "just" an inner-monk-issue...
     
  19. ЯƎHTͶAꟼ

    ЯƎHTͶAꟼ MDL Senior Member

    Jan 29, 2017
    364
    100
    10
    #3719 ЯƎHTͶAꟼ, Jul 5, 2025 at 18:52
    Last edited: Jul 5, 2025 at 18:59
    DISM kind of stucks:
    I think it was the old problem, I was greedy for space.
    So the VM got too less, in result dism kind of crashed.
    And now it tries to repeat steps n stuff...

    I tried a few commands (yea the failure removal scripts several times ofcs too) but still stuff fails now.

    Any ways to reset dism to a clean, ready state without pending stuff?

    Code:
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.2454
    
    Scanning drive C for stale files
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.2454
    
    Cleaning up image
    Scanning drive C for stale files
    The operation completed successfully.
    
    Removing W10/W81/W7-UI/MUI directories
    
    Press any key to exit.
    
    The directories like Mount etc remain (and yea does not help to remove them, nothing it mounted either)

    Normally should looks like this, right?
    Code:
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.2454
    
    Scanning drive C for stale files
    Scanning drive E for stale files
    Scanning drive F for stale files
    Scanning drive M for stale files
    Scanning drive P for stale files
    Scanning drive S for stale files
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.26100.2454
    
    Cleaning up image
    Scanning drive C for stale files
    Scanning drive E for stale files
    Scanning drive F for stale files
    Scanning drive M for stale files
    Scanning drive P for stale files
    Scanning drive S for stale files
    The operation completed successfully.
    
    Removing W10/W81/W7-UI/MUI directories
    
    Press any key to exit.
     
  20. ЯƎHTͶAꟼ

    ЯƎHTͶAꟼ MDL Senior Member

    Jan 29, 2017
    364
    100
    10
    #3720 ЯƎHTͶAꟼ, Jul 6, 2025 at 02:43
    Last edited: Jul 6, 2025 at 04:25
    Okay no matter what, x86 fails...
    I remember I had that already long ago.. mhh..

    same for net:
    Code:
    2025-07-06 02:44:18, Info                  CBS    Not able to add pending.xml to offline WER report. [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
    2025-07-06 02:44:18, Error                 CSI    000000f1 (F) E_UNEXPECTED #1700# from Windows::ServicingAPI::CCSITransaction::ICSITransaction2_Analyze(Flags = 0, riid = {f4d9decb-0250-4ad4-9500-85c7f2f281ec}, ppUnk = NULL, disp = 0)[gle=0x8000ffff]
    2025-07-06 02:44:18, Info                  CBS    Failed to get transaction analysis. [HRESULT = 0x8000ffff - E_UNEXPECTED]
    2025-07-06 02:44:18, Info                  CBS    Failed to get inventory. [HRESULT = 0x8000ffff - E_UNEXPECTED]
    2025-07-06 02:44:18, Info                  CSI    000000f2@2025/7/6:01:44:18.184 CSI Transaction @0x5b50c68 destroyed
    2025-07-06 02:44:18, Info                  CBS    Failed to get CSI Inventory [HRESULT = 0x8000ffff - E_UNEXPECTED]
    2025-07-06 02:44:18, Info                  CBS    Failed to get component state. [HRESULT = 0x8000ffff - E_UNEXPECTED]
    2025-07-06 02:44:18, Info                  CSI    000000f3@2025/7/6:01:44:18.184 CSI Transaction @0x3172668 initialized for deployment engine {d16d444c-56d8-11d5-882d-0080c847b195} with flags 00000002 and client id 'TI5.5124_7946500:41/'
    
    2025-07-06 02:44:18, Error                 CSI    000000f4 (F) Primitive operations failed to complete, cannot begin another transaction[gle=0x80004005]
    2025-07-06 02:44:18, Error                 CSI    000000f5 (F) E_UNEXPECTED #1732# from Windows::COM::CComponentStore::InternalTransact(...)[gle=0x8000ffff]
    2025-07-06 02:44:18, Error                 CSI    000000f6@2025/7/6:01:44:18.184 (F) onecore\base\wcp\componentstore\com\store.cpp(4786): Error E_UNEXPECTED originated in function Windows::COM::CComponentStore::InternalTransact expression: ((HRESULT)0x8000FFFFL)
    [gle=0x80004005]
    2025-07-06 02:44:18, Info                  CONX   aepic: TRACE,PicRetrieveFileInfo,963,Deprecated flag used: [0x4000]
    
    2025-07-06 02:44:18, Info                  CONX   aepic: TRACE,File::SetBaseFileInfoForPic,600,Retrieved "c:\w10muitemp\scratch\060bb5b7-9a92-4434-bd18-8cb9c9137e5b\dismhost.exe" info from cache
    
    2025-07-06 02:44:18, Info                  CBS    Added C:\WINDOWS\Logs\DISM\MUINetFx3.log to WER report.


    Code:
    2025-07-06 02:38:55, Info                  CBS    Loading offline registry hive: schema.dat, into registry key '{bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/system32/smi/store/Machine/schema.dat' from path '\\?\C:\W10MUIMOUNT\install\Windows\system32\smi\store\Machine\schema.dat'.
    2025-07-06 02:38:55, Info                  CSI    00002973 CSI Store 381715240 initialized
    2025-07-06 02:38:55, Info                  CBS    Session: 1528_7631359 initialized by client DISM Package Manager Provider, external staging directory: (null), external registry directory: (null
    2025-07-06 02:38:55, Info                  DISM   DISM Package Manager: PID=1528 TID=2200 Loaded servicing stack for offline use only. - CDISMPackageManager::RefreshInstanceAndLock
    2025-07-06 02:38:55, Info                  DISM   DISM Package Manager: PID=1528 TID=2200 Loaded servicing stack for online use only. - CDISMPackageManager::RefreshInstanceAndLock
    2025-07-06 02:38:57, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/SOFTWARE
    2025-07-06 02:38:57, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/SOFTWARE, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2025-07-06 02:38:57, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/SYSTEM
    2025-07-06 02:38:57, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/SYSTEM, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2025-07-06 02:38:57, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/SECURITY
    2025-07-06 02:38:57, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/SECURITY, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2025-07-06 02:38:57, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/SAM
    2025-07-06 02:38:57, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/SAM, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2025-07-06 02:38:57, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/COMPONENTS
    2025-07-06 02:38:57, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/COMPONENTS, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2025-07-06 02:38:57, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/DRIVERS
    2025-07-06 02:38:57, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/DRIVERS, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2025-07-06 02:38:57, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/DEFAULT
    2025-07-06 02:38:57, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/DEFAULT, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2025-07-06 02:38:57, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Users/Default/ntuser.dat
    2025-07-06 02:38:57, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Users/Default/ntuser.dat, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2025-07-06 02:38:57, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/system32/smi/store/Machine/schema.dat
    2025-07-06 02:38:57, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/system32/smi/store/Machine/schema.dat, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2025-07-06 02:38:57, Error                 DISM   DISM Package Manager: PID=1528 TID=2200 Failed while processing command add-package. - CPackageManagerCLIHandler::ExecuteCmdLine(hr:0x800f0922)
    2025-07-06 02:38:57, Error                 DISM   DISM.EXE: DISM Package Manager processed the command line but failed. HRESULT=800F0922
    2025-07-06 02:38:57, Info                  DISM   DISM Provider Store: PID=1528 TID=6428 Found the OSServices.  Waiting to finalize it until all other providers are unloaded. - CDISMProviderStore::Final_OnDisconnect
    2025-07-06 02:38:57, Info                  DISM   DISM Provider Store: PID=1528 TID=6428 Found the OSServices.  Waiting to finalize it until all other providers are unloaded. - CDISMProviderStore::Final_OnDisconnect
    2025-07-06 02:38:57, Info                  DISM   DISM Provider Store: PID=1528 TID=6428 Found the PE Provider.  Waiting to finalize it until all other providers are unloaded. - CDISMProviderStore::Final_OnDisconnect
    2025-07-06 02:38:57, Info                  DISM   DISM Provider Store: PID=1528 TID=6428 Finalizing the servicing provider(DISM Package Manager) - CDISMProviderStore::Internal_DisconnectProvider
    2025-07-06 02:38:57, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/SOFTWARE
    2025-07-06 02:38:57, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/SOFTWARE, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2025-07-06 02:38:57, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/SYSTEM
    2025-07-06 02:38:57, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/SYSTEM, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2025-07-06 02:38:57, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/SECURITY
    2025-07-06 02:38:57, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/SECURITY, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2025-07-06 02:38:57, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/SAM
    2025-07-06 02:38:57, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/SAM, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2025-07-06 02:38:57, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/COMPONENTS
    2025-07-06 02:38:57, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/COMPONENTS, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2025-07-06 02:38:57, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/DRIVERS
    2025-07-06 02:38:57, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/DRIVERS, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2025-07-06 02:38:57, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/DEFAULT
    2025-07-06 02:38:57, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/DEFAULT, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2025-07-06 02:38:57, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Users/Default/ntuser.dat
    2025-07-06 02:38:57, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/system32/smi/store/Machine/schema.dat
    2025-07-06 02:38:57, Info                  DISM   DISM Package Manager: PID=1528 TID=6428 Finalizing CBS core. - CDISMPackageManager::Finalize[/size][/spoiler]
    
    [soiler[[code]
    2025-07-06 05:21:39, Info                  CSI    00002973 CSI Store 364134784 initialized
    2025-07-06 05:21:39, Info                  CBS    Session: 6344_13795187 initialized by client DISM Package Manager Provider, external staging directory: (null), external registry directory: (null
    2025-07-06 05:21:39, Info                  DISM   DISM Package Manager: PID=6344 TID=2164 Loaded servicing stack for offline use only. - CDISMPackageManager::RefreshInstanceAndLock
    2025-07-06 05:21:39, Info                  DISM   DISM Package Manager: PID=6344 TID=2164 Loaded servicing stack for online use only. - CDISMPackageManager::RefreshInstanceAndLock
    2025-07-06 05:21:39, Error                 DISM   DISM Package Manager: PID=6344 TID=2164 Failed while processing command add-package. - CPackageManagerCLIHandler::ExecuteCmdLine(hr:0x800f0922)
    2025-07-06 05:21:39, Error                 DISM   DISM.EXE: DISM Package Manager processed the command line but failed. HRESULT=800F0922
    2025-07-06 05:21:39, Info                  DISM   DISM Provider Store: PID=6344 TID=7716 Found the OSServices.  Waiting to finalize it until all other providers are unloaded. - CDISMProviderStore::Final_OnDisconnect
    2025-07-06 05:21:39, Info                  DISM   DISM Provider Store: PID=6344 TID=7716 Found the OSServices.  Waiting to finalize it until all other providers are unloaded. - CDISMProviderStore::Final_OnDisconnect
    2025-07-06 05:21:39, Info                  DISM   DISM Provider Store: PID=6344 TID=7716 Found the PE Provider.  Waiting to finalize it until all other providers are unloaded. - CDISMProviderStore::Final_OnDisconnect
    2025-07-06 05:21:39, Info                  DISM   DISM Provider Store: PID=6344 TID=7716 Finalizing the servicing provider(DISM Package Manager) - CDISMProviderStore::Internal_DisconnectProvider
    2025-07-06 05:21:39, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/SOFTWARE
    2025-07-06 05:21:39, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/SOFTWARE, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2025-07-06 05:21:39, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/SYSTEM
    2025-07-06 05:21:39, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/SYSTEM, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2025-07-06 05:21:39, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/SECURITY
    2025-07-06 05:21:39, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/SECURITY, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2025-07-06 05:21:39, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/SAM
    2025-07-06 05:21:39, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/SAM, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2025-07-06 05:21:39, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/COMPONENTS
    2025-07-06 05:21:39, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/COMPONENTS, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2025-07-06 05:21:39, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/DRIVERS
    2025-07-06 05:21:39, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/DRIVERS, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2025-07-06 05:21:39, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/DEFAULT
    2025-07-06 05:21:39, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/DEFAULT, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2025-07-06 05:21:39, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Users/Default/ntuser.dat
    2025-07-06 05:21:39, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Users/Default/ntuser.dat, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2025-07-06 05:21:39, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/system32/smi/store/Machine/schema.dat
    2025-07-06 05:21:39, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/system32/smi/store/Machine/schema.dat, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2025-07-06 05:21:39, Info                  DISM   DISM Package Manager: PID=6344 TID=7716 Finalizing CBS core. - CDISMPackageManager::Finalize
    2025-07-06 05:21:39, Info                  CBS    CbsCoreFinalize: ManifestCacheFinalize
    2025-07-06 05:21:39, Info                  CBS    CbsCoreFinalize: ExecutionEngineFinalize
    2025-07-06 05:21:40, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/SOFTWARE
    2025-07-06 05:21:40, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/SOFTWARE, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2025-07-06 05:21:40, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/SYSTEM
    2025-07-06 05:21:40, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/SYSTEM, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2025-07-06 05:21:40, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/SECURITY
    2025-07-06 05:21:40, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/SECURITY, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2025-07-06 05:21:40, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/SAM
    2025-07-06 05:21:40, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/SAM, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2025-07-06 05:21:40, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/COMPONENTS
    2025-07-06 05:21:40, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/COMPONENTS, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2025-07-06 05:21:40, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/DRIVERS
    2025-07-06 05:21:40, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/DRIVERS, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2025-07-06 05:21:40, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/DEFAULT
    2025-07-06 05:21:40, Info                  CBS    Failed to unload offline registry: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/System32/config/DEFAULT, the client may still need it open. [HRESULT = 0x80070005 - E_ACCESSDENIED]
    2025-07-06 05:21:40, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Users/Default/ntuser.dat
    2025-07-06 05:21:40, Info                  CBS    Unloading offline registry hive: {bf1a281b-ad7b-4476-ac95-f47682990ce7}C:/W10MUIMOUNT/install/Windows/system32/smi/store/Machine/schema.dat
    2025-07-06 05:21:41, Info                  CBS    CbsCoreFinalize: ComponentAnalyzerFinalize
    2025-07-06 05:21:41, Info                  CBS    CbsCoreFinalize: PackageTrackerFinalize
    2025-07-06 05:21:41, Info                  CBS    CbsCoreFinalize: CoreResourcesUnload
    2025-07-06 05:21:41, Info                  CBS    CbsCoreFinalize: SessionManagerFinalize
    2025-07-06 05:21:41, Info                  CBS    CbsCoreFinalize: CapabilityManagerFinalize
    2025-07-06 05:21:41, Info                  CBS    CbsCoreFinalize: GetPublicObjectMonitor::Audit
    2025-07-06 05:21:41, Info                  CBS    CbsCoreFinalize: PublicObjectMonitorFinalize
    2025-07-06 05:21:41, Info                  CBS    CbsCoreFinalize: Enter vCoreInitializeLock
    2025-07-06 05:21:41, Info                  CBS    CbsCoreFinalize: WcpUnload
    2025-07-06 05:21:41, Info                  CBS    CbsCoreFinalize: DrupUnload
    2025-07-06 05:21:41, Info                  CBS    CbsCoreFinalize: CfgMgr32Unload
    2025-07-06 05:21:41, Info                  CBS    CbsCoreFinalize: DpxUnload
    2025-07-06 05:21:41, Info                  CBS    CbsCoreFinalize: SrUnload
    2025-07-06 05:21:41, Info                  CBS    CbsCoreFinalize: CbsEsdUnload
    2025-07-06 05:21:41, Info                  CBS    CbsCoreFinalize: CbsTraceInfoUninitialize
    2025-07-06 05:21:41, Info                  CBS    CbsCoreFinalize: CbsEventUnregister
    2025-07-06 05:21:41, Info                  CBS    CbsCoreFinalize: AppContainerUnload
    2025-07-06 05:21:41, Info                  CBS    CbsCoreFinalize: WdsUnload, logging from cbscore will end.
    2025-07-06 05:21:41, Info                  DISM   DISM Provider Store: PID=6344 TID=7716 Disconnecting Provider: DISM Package Manager - CDISMProviderStore::Internal_DisconnectProvider
    2025-07-06 05:21:41, Info                  DISM   DISM Provider Store: PID=6344 TID=7716 Finalizing the servicing provider(MsiManager) - CDISMProviderStore::Internal_DisconnectProvider
    2025-07-06 05:21:41, Info                  DISM   DISM Provider Store: PID=6344 TID=7716 Disconnecting Provider: MsiManager - CDISMProviderStore::Internal_DisconnectProvider
    2025-07-06 05:21:41, Info                  DISM   DISM Provider Store: PID=6344 TID=7716 Finalizing the servicing provider(IntlManager) - CDISMProviderStore::Internal_DisconnectProvider
    2025-07-06 05:21:41, Info                  DISM   DISM Provider Store: PID=6344 TID=7716 Disconnecting Provider: IntlManager - CDISMProviderStore::Internal_DisconnectProvider
    2025-07-06 05:21:41, Info                  DISM   DISM Provider Store: PID=6344 TID=7716 Finalizing the servicing provider(IBSManager) - CDISMProviderStore::Internal_DisconnectProvider
    2025-07-06 05:21:41, Info                  DISM   DISM Provider Store: PID=6344 TID=7716 Disconnecting Provider: IBSManager - CDISMProviderStore::Internal_DisconnectProvider
    2025-07-06 05:21:41, Info                  DISM   DISM Provider Store: PID=6344 TID=7716 Finalizing the servicing provider(DriverManager) - CDISMProviderStore::Internal_DisconnectProvider
    2025-07-06 05:21:41, Info                  DISM   DISM Provider Store: PID=6344 TID=7716 Disconnecting Provider: DriverManager - CDISMProviderStore::Internal_DisconnectProvider
    2025-07-06 05:21:41, Info                  DISM   DISM Provider Store: PID=6344 TID=7716 Finalizing the servicing provider(DISM Unattend Manager) - CDISMProviderStore::Internal_DisconnectProvider
    2025-07-06 05:21:41, Info                  DISM   DISM Provider Store: PID=6344 TID=7716 Disconnecting Provider: DISM Unattend Manager - CDISMProviderStore::Internal_DisconnectProvider
    2025-07-06 05:21:41, Info                  DISM   DISM Provider Store: PID=6344 TID=7716 Finalizing the servicing provider(SmiManager) - CDISMProviderStore::Internal_DisconnectProvider
    2025-07-06 05:21:41, Info                  DISM   DISM Provider Store: PID=6344 TID=7716 Disconnecting Provider: SmiManager - CDISMProviderStore::Internal_DisconnectProvider
    2025-07-06 05:21:41, Info                  DISM   DISM Provider Store: PID=6344 TID=7716 Finalizing the servicing provider(AppxManager) - CDISMProviderStore::Internal_DisconnectProvider
    2025-07-06 05:21:41, Info                  DISM   DISM Provider Store: PID=6344 TID=7716 Disconnecting Provider: AppxManager - CDISMProviderStore::Internal_DisconnectProvider
    2025-07-06 05:21:41, Info                  DISM   DISM Provider Store: PID=6344 TID=7716 Finalizing the servicing provider(ProvManager) - CDISMProviderStore::Internal_DisconnectProvider
    2025-07-06 05:21:41, Info                  DISM   DISM Provider Store: PID=6344 TID=7716 Disconnecting Provider: ProvManager - CDISMProviderStore::Internal_DisconnectProvider
    2025-07-06 05:21:41, Info                  DISM   DISM Provider Store: PID=6344 TID=7716 Finalizing the servicing provider(AssocManager) - CDISMProviderStore::Internal_DisconnectProvider
    2025-07-06 05:21:41, Info                  DISM   DISM Provider Store: PID=6344 TID=7716 Disconnecting Provider: AssocManager - CDISMProviderStore::Internal_DisconnectProvider
    2025-07-06 05:21:41, Info                  DISM   DISM Provider Store: PID=6344 TID=7716 Finalizing the servicing provider(GenericManager) - CDISMProviderStore::Internal_DisconnectProvider
    2025-07-06 05:21:41, Info                  DISM   DISM Provider Store: PID=6344 TID=7716 Disconnecting Provider: GenericManager - CDISMProviderStore::Internal_DisconnectProvider
    2025-07-06 05:21:41, Info                  DISM   DISM Provider Store: PID=6344 TID=7716 Finalizing the servicing provider(OfflineSetupManager) - CDISMProviderStore::Internal_DisconnectProvider
    2025-07-06 05:21:41, Info                  DISM   DISM Provider Store: PID=6344 TID=7716 Disconnecting Provider: OfflineSetupManager - CDISMProviderStore::Internal_DisconnectProvider
    2025-07-06 05:21:41, Info                  DISM   DISM Provider Store: PID=6344 TID=7716 Finalizing the servicing provider(Edition Manager) - CDISMProviderStore::Internal_DisconnectProvider
    2025-07-06 05:21:41, Info                  DISM   DISM Provider Store: PID=6344 TID=7716 Disconnecting Provider: Edition Manager - CDISMProviderStore::Internal_DisconnectProvider
    2025-07-06 05:21:41, Info                  DISM   DISM Provider Store: PID=6344 TID=7716 Releasing the local reference to OSServices. - CDISMProviderStore::Internal_DisconnectProvider
    2025-07-06 05:21:41, Info                  DISM   DISM Provider Store: PID=6344 TID=7716 Disconnecting Provider: OSServices - CDISMProviderStore::Internal_DisconnectProvider
    2025-07-06 05:21:41, Info                  DISM   DISM OS Provider: PID=6344 TID=7716 Successfully unloaded all registry hives. - CDISMOSServiceManager::Final_OnDisconnect
    2025-07-06 05:21:41, Info                  DISM   DISM Provider Store: PID=6344 TID=7716 Releasing the local reference to DISMLogger.  Stop logging. - CDISMProviderStore::Internal_DisconnectProvider
    2025-07-06 05:21:41, Info                  DISM   DISM Manager: PID=3652 TID=7164 Closing session event handle 0x278 - CDISMManager::CleanupImageSessionEntry
    2025-07-06 05:21:41, Info                  DISM   DISM Manager: DeletePath: Attempting to obliterate [C:\W10MUITEMP\updtemp\F6AEE3B3-85D5-4485-9E2E-A269282D9337] (final path [\\?\Volume{d009279e-95fb-4131-bfaa-4e2ed2a1f184}\W10MUITEMP\updtemp\F6AEE3B3-85D5-4485-9E2E-A269282D9337]).
    2025-07-06 05:21:41, Info                  DISM   DISM.EXE: Image session has been closed. Reboot required=no.
    2025-07-06 05:21:41, Info                  DISM   DISM.EXE: 
    2025-07-06 05:21:41, Info                  DISM   DISM.EXE: <----- Ending Dism.exe session ----->
    2025-07-06 05:21:41, Info                  DISM   DISM.EXE: 


    Whatever that means...

    @abbodi1406 any idea what that stuff means?