abbodi1406's Batch Scripts Repo

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

  1. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,197
    84,757
    340
    No, because Appx are already registered and provisioned

    maybe you will have luck in deleting those keys, then create new user account
    see if they get registered that way
     
  2. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,256
    94,672
    450
  3. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,197
    84,757
    340
    W10MUI v10

    - Support for using LangPacks ESD files from UUP source
    - Support for build 17763 and LPs/FODs links from UUP dump
    - Minor change for ISO file name to specify integrated languages
    - Fixed: boot.wim manual localization for en-us LP
     
  4. armond

    armond MDL Addicted

    Jun 16, 2008
    734
    235
    30
    #524 armond, Nov 27, 2018
    Last edited: Nov 27, 2018
    Yes it worked!
    No Edge stuff after deleting those keys and creating a new user.
    No \AppData\Local\MicrosoftEdge folder.
    BTW do you think it's safe to take ownership and delete the LCU folder from \Windows\servicing
    dism /online /Cleanup-Image /StartComponentCleanup /ResetBase
    removes them but keeps the last one.
     
  5. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,197
    84,757
    340
    You can delete the inner Package_for_RollupFix folder without taking ownership

    i believe it's used to reinstall LCU if you install new LangPack or feature.. etc
     
  6. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,197
    84,757
    340
  7. l33tissw00t

    l33tissw00t MDL Addicted

    Dec 6, 2012
    819
    520
    30
    Almost got yourself in trouble not posting here :p

    Thanks again!
     
  8. armond

    armond MDL Addicted

    Jun 16, 2008
    734
    235
    30
    #528 armond, Nov 28, 2018
    Last edited: Nov 28, 2018
    My memory is not helping me remember how to do this:)
    I want to add some drivers to install.wim, delete this keys
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\InboxApplications\Microsoft.MicrosoftEdge_44.17763.1.0_neutral__8wekyb3d8bbwe
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\InboxApplications\Microsoft.MicrosoftEdgeDevToolsClient_10.0.17763.1_neutral__8wekyb3d8bbwe
    from the image, unmount the image, and use W10UI_5.3.
    Thanks.
    Edit: The Magic of Google:)
    https://www.tenforums.com/tutorials/95002-dism-edit-registry-offline-image.html
    Done!
     
  9. madfa2gy

    madfa2gy MDL Novice

    Oct 12, 2011
    4
    0
    0
    @abbodi1406
    Is there any script to uninstall individual Office 2019 applications (that have been already installed) not to exclude them before installation.
    I mean I already installed ProPlus2019Retail then I want to uninstall Publisher and Skype for business.
     
  10. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,197
    84,757
    340
    That require modifying a lot of registry keys, and don't know if it will work

    it's would be easier to uninstall ProPlus normally (no scrub), then install new one with excluded apps
     
  11. armond

    armond MDL Addicted

    Jun 16, 2008
    734
    235
    30
    #531 armond, Nov 28, 2018
    Last edited: Nov 29, 2018
    @abbodi1406,
    Aah, Seams integrading CU into the modified install.wim recreates those Edge registry keys.:(
    Edit: Just found out this is not the case.
    Somethinghave to be done for it or similar situations E.G. a last minute driver integration into install.wim
    Maybe, you could give an option for pausing the W10UI.cmd script before saving the changes into install.wim?
    Or maybe an option for adding/removing certain registry tweaks before saving install.wim.
    I know, it sounds too much sophisticated.:(
    I can remount and work on the install.wim but I get some messages related to pending operations, maybe I could just ignore those messages?
    Thanks as always.
     
  12. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,197
    84,757
    340
    Well, do you answer file unattend.xml?
    it would be easier to use to delete those registry keys
     
  13. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,197
    84,757
    340
    W10UI v5.4

    Added support for multi-versioned updates, to avoid skipping new version if old version already installed
    e.g.
    KB4469342 17763.165 & KB4469342 17763.167

    although, this will increase checking updates time a little bit
     
  14. armond

    armond MDL Addicted

    Jun 16, 2008
    734
    235
    30
    #534 armond, Nov 28, 2018
    Last edited: Nov 28, 2018
    Yes. Should try it. Thanks for pointing out.
    Edit:
    What about running some batch files in OOBE?
    I mean for example, pressing Shift+F10, running Notepad (I am sure it works), browsing for and opening the script, selecting/copying its content, then pasting it to the previously opened CMD window and running it.
    Should try it as well.
     
  15. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,197
    84,757
    340
    This what i use
    Code:
            <component name="Microsoft-Windows-Deployment" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <RunSynchronous>
                    <RunSynchronousCommand wcm:action="add">
                        <Path>%windir%\Setup\Scripts\specialize.cmd</Path>
                        <Order>1</Order>
                        <Description>SystemTweaks</Description>
                    </RunSynchronousCommand>
                </RunSynchronous>
            </component>
    
    script here will run under system account with TI privileges
     
  16. armond

    armond MDL Addicted

    Jun 16, 2008
    734
    235
    30
    Thanks for sharing. Let's see which method works well.
     
  17. armond

    armond MDL Addicted

    Jun 16, 2008
    734
    235
    30
    It worked. Thanks.
    Also it seams I was wrong.
    Integrading CU does not re-create the deleted keys related to Edge.
    So I see I also can do what I wanted to do in the first place. Thanks so much for all your helps.
     
  18. phamtrungh

    phamtrungh MDL Novice

    Jul 29, 2011
    24
    1
    0
    Can I update Edge to offline image using MSEdgeUpdater? I can't extract msu file :(
     
  19. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,197
    84,757
    340
    No
    the script perform operations that need live system
     
  20. phamtrungh

    phamtrungh MDL Novice

    Jul 29, 2011
    24
    1
    0
    So if I want to update Edge in LTSC version, the only way to update is do it online, not offline dism?