DISM Windows 8.1 - Remove APPS from the install.wim - Question

Discussion in 'Windows 8' started by tnx, May 12, 2014.

  1. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60
    Hey up.

    I was messing with Windows 8.1 and DISM and found myself looking at removing the pre-installed apps.

    Got this

    Works well and displays a list of apps.

    I used this

    And it worked fine.

    Not tested an install as yet after removing the apps but I will be doing.

    Wanted to ask is there a line which can be added to the command which gets the list of apps and have it saved as a text file. Save's me manually writing down the names and numbers of each app.

    Been searching about and can't seem to find owt and my scripting skills are quite poor.

    Any tips on this little matter ??

    Cheers..

    :cool:
     
  2. Shenj

    Shenj MDL Expert

    Aug 12, 2010
    1,556
    656
    60
    #2 Shenj, May 12, 2014
    Last edited by a moderator: Apr 20, 2017
    This simple.

    Code:
    DISM /Image:%~dp0mount /Get-Provisionedappxpackages > C:\Packages.txt
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60
    #3 tnx, May 12, 2014
    Last edited by a moderator: Apr 20, 2017
    (OP)
  4. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60
    #4 tnx, May 12, 2014
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Worked a treat, just amended the DIR to save the output file to my chosen folder and hey presto.

    PERFECT !!!!!
     
  5. LiteOS

    LiteOS Windowizer

    Mar 7, 2014
    2,204
    978
    90
    use win toolkit the lastest has been update to remove metro apps:)
    too
     
  6. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60
    Cheers for that..
     
  7. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60
    Just this minute I tested it out...Worked like a charm.

    :)
     
  8. LiteOS

    LiteOS Windowizer

    Mar 7, 2014
    2,204
    978
    90
    yea its better then using app like vlite or other the safest :)
     
  9. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60

    Hi lite8, can I pick your brains. With your tag you may know.

    Is it possible to remove the "App Store" from an install.wim ?

    Plus "OneDrive" ( at least I think that's what it's called )

    I downloaded that software you recomended in post #5, had a quick look at it but not really used it, could that do it ?
     
  10. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,104
    24,378
    340
    Afaik the Industry Embedded 8.1 versions are shipped with all features except the Store. Maybe this would be a base to check/work with :g:.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60
    Sounds interesting. I will check this out.

    Cheers.
     
  12. Stannieman

    Stannieman MDL Guru

    Sep 4, 2009
    2,232
    1,818
    90
    There is also a camera app that doesn't show up in dism. I know that for an online image you can change something in the registry so dism does list it and you can remove it. Maybe it works the same for the store.
    This is probably not going to work for an offline image as dism doesn't read the image's registry.
    What may help you out is having a look in Windows\servicing\Packages of your mounted wim, maybe you can change something in the files for camera and store so dism picks them up.
    Also interesting is that the store and camera aren't in the regular metro app place but in Windows\Camera and Windows\Winstore.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,104
    24,378
    340
    In another thread murphy78 mentioned the Audit Mode route to remove Apps via Powershell, then Sysprep/Generalize and Capture :g:.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. Stannieman

    Stannieman MDL Guru

    Sep 4, 2009
    2,232
    1,818
    90
    Powershell is also an option, but there is no real difference between using dism and powershell (except that it might be easier to remove the hidden apps?).
    If powershell can remove then without hacking around then that is the best option for the hidden apps, otherwise I'd stick with dism as it's cleaner if you use it for install.wim purposes.

    Does anyone actually know why the camera app is locked? Does it provide camera access to other apps like skype or is there a different reason?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60

    Yeasss I have seen his threads, some good reading on those. :)

    I saw a REG edit to disable the Store, I may just use this route.

    I can honestly say I am never going to use the Store nor download any apps from it.
     
  16. LiteOS

    LiteOS Windowizer

    Mar 7, 2014
    2,204
    978
    90
    btw tnx i think using wtk to remove metro apps kills windows store
     
  17. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60

    Ohhhhh. My earlier test was on my older PC, I may well do the same test on my working machine and see what happens.

    Interesting.
     
  18. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    7,389
    11,614
    240
    #18 murphy78, May 14, 2014
    Last edited by a moderator: Apr 20, 2017
    Certain apps are hidden by the system.
    You can run a program called "install_wim_tweak.exe" to un-hide these packages
    Example:
    Code:
    install_wim_tweak.exe /o /c "Microsoft-Windows-MediaViewer-Package~31bf3856ad364e35~amd64~~6.3.9600.16384" /r
    install_wim_tweak.exe /o /c "Microsoft-Windows-MediaViewer-Package~31bf3856ad364e35~amd64~en-US~6.3.9600.16384" /r
    install_wim_tweak.exe /o /c "Microsoft-Windows-Camera-Package" /r
    install_wim_tweak.exe /o /c "Microsoft-Windows-WebcamExperience-Package" /r
    install_wim_tweak.exe /o /c "Microsoft-Windows-FileManager-Package~31bf3856ad364e35~amd64~~6.3.9600.16384" /r
    install_wim_tweak.exe /o /c "Microsoft-Windows-FileManager-Package~31bf3856ad364e35~amd64~en-US~6.3.9600.16384" /r
    
    
    install_wim_tweak.exe /o /c "Microsoft-Windows-Store-Client-Package~31bf3856ad364e35~amd64~~6.3.9600.16384" /r
    install_wim_tweak.exe /o /c "Microsoft-Windows-Store-Client-Package~31bf3856ad364e35~amd64~en-US~6.3.9600.16384" /r
    
    
    install_wim_tweak.exe /o /c "Checkpoint-VpnPlugin-Package~31bf3856ad364e35~amd64~~6.3.9600.16384" /r
    install_wim_tweak.exe /o /c "Checkpoint-VpnPlugin-Package~31bf3856ad364e35~amd64~en-US~6.3.9600.16384" /r
    install_wim_tweak.exe /o /c "F5-VpnPlugin-Package~31bf3856ad364e35~amd64~~6.3.9600.16384" /r
    install_wim_tweak.exe /o /c "F5-VpnPlugin-Package~31bf3856ad364e35~amd64~en-US~6.3.9600.16384" /r
    install_wim_tweak.exe /o /c "Juniper-VpnPlugin-Package~31bf3856ad364e35~amd64~~6.3.9600.16384" /r
    install_wim_tweak.exe /o /c "Juniper-VpnPlugin-Package~31bf3856ad364e35~amd64~en-US~6.3.9600.16384" /r
    install_wim_tweak.exe /o /c "Microsoft-Windows-VpnPlugins-Package~31bf3856ad364e35~amd64~~6.3.9600.16384" /r
    install_wim_tweak.exe /o /c "Microsoft-Windows-VpnPlugins-Package~31bf3856ad364e35~amd64~en-US~6.3.9600.16384" /r
    install_wim_tweak.exe /o /c "SonicWALL-VpnPlugin-Package~31bf3856ad364e35~amd64~~6.3.9600.16384" /r
    install_wim_tweak.exe /o /c "SonicWALL-VpnPlugin-Package~31bf3856ad364e35~amd64~en-US~6.3.9600.16384" /r
    Use this tool with extreme caution and don't blame me if you break something.
     

    Attached Files:

  19. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60
    #19 tnx, May 14, 2014
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Nice one :)

    Just on the iPad at the mo so will give this a good looking at later or when I get time.

    Thanks very much.
     
  20. orbidia

    orbidia MDL Junior Member

    Feb 22, 2010
    79
    30
    0
    #20 orbidia, May 18, 2014
    Last edited: May 18, 2014