Script to Remove Apps

Discussion in 'Windows 10' started by SightUp, Aug 21, 2015.

  1. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60
    I am just testing it now.

    I am on x64 using a x86 image.

    reporting no errors.

    Will have a read around and see what info I can find ????
     
  2. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60
    There is a tool called "GImageX"

    It is a very nice gui for mounting install.wim and the like.

    Google it, download it.
    run it and select your chosen install.wim and see what info it gives you. See if that can mount the image ?
     
  3. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60
    @Microft

    Can I ask where you got the image you are using from.
    Is it an original clean image ?

    What I have read says the image maybe corrupt in some way by another imaging tool ???????????

    I have no idea what this really meant or if this is possible.

    What .iso image are you using ?
    maybe start over by extracting a new install.wim ?????
     
  4. Microft

    Microft MDL Novice

    Aug 24, 2015
    17
    1
    0
    #44 Microft, Aug 25, 2015
    Last edited by a moderator: Apr 20, 2017
    Thx for your effort to help me man... i did download gimagex v2 and guess what

    Code:
    Mount Path:    C:\DISM\mount
    Image File:    C:\DISM\install.wim\install.wim
    Image Index:    1
    Mounted R/W:    0
    
    Opening WIM...please wait...
    
    ERROR: Unable to mount image.
    ERROR: An attempt was made to load a program with an incorrect format.
    :death:
     
  5. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60
    #45 tnx, Aug 25, 2015
    Last edited by a moderator: Apr 20, 2017

    Right..

    Interesting..See my post #43
     
  6. Microft

    Microft MDL Novice

    Aug 24, 2015
    17
    1
    0
    Im dl the iso using Media Creation Tool (Windows 10 Pro 64) 3.1GB
     
  7. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60
    that's interesting..

    I have not tested such an image direst from M.Soft...

    I think I will have to try.

    You never know, they might have locked the image some how ???

    Would you care to download an iso image from a link on the forums and try again ?

    Have not got time myself to download from the MCT tonight....Work beckons very very soon...
     
  8. Microft

    Microft MDL Novice

    Aug 24, 2015
    17
    1
    0
    oh man with my net only 100kb/s o_O
     
  9. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60
    #49 tnx, Aug 25, 2015
    Last edited: Aug 25, 2015
    LOL...

    I have just set up the MCT to download images from M.Soft. I will test this out for myself tomorrow.

    It is funny, another forum member has been PMing me about he same stuff your asking. he has never used DISM and so I told him virtually the exact same things I put up here for you.

    The funny thing is he is getting the very same error as you and he is using the .iso downloaded by MCT.

    An odd little problem. I wonder if any other members have had this problem. it may not be the image at all....

    I have a tendency to give out misinformation, unintentionally of course and I usually get pulled up on it...:eek: We'll wait and see:D
     
  10. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60
    I felt compelled last night to download the .iso images using the MCT.

    This afternoon I got time to test the install.wim files from both the x86 and x64 images.

    Both gave me the very same error as you reported and what the other member via PM reported.

    This is fascinating, how the install.wim seems to be locked ?

    They may well be another explanation, I feel this may need it's own thread to highlight the problem, where the clever folk can see it who may not be reading this thread.

    :g:
     
  11. Garbellano

    Garbellano MDL Addicted

    Aug 13, 2012
    947
    248
    30
    Im trying to remove this Microsoft.BioEnrollment

    also called

    Microsoft-OneCore-Biometrics-Package~31bf3856ad364e35~amd64~~10.0.10240.16384
    Microsoft-OneCore-Biometrics-WOW64-Package~31bf3856ad364e35~amd64~~10.0.10240.16384


    and I cant...
     
  12. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60
    #52 tnx, Aug 26, 2015
    Last edited: Aug 26, 2015
    Can you tell us exactly how your trying to do it.

    EDIT..

    What is that for ?
    Why remove it ?
     
  13. Carol666

    Carol666 MDL Member

    Aug 12, 2015
    129
    10
    10
    Fingerprinting if you are using your finger to unlock your pc you should leave biometrics alone
     
  14. tistou77

    tistou77 MDL Expert

    Mar 22, 2008
    1,823
    573
    60
    Hello

    If I remove all the apps, start menu or other still work?
    I thought I saw the need to keep at least 1 apps for it to work

    Thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. fkar

    fkar MDL Recognized Advisor

    Nov 3, 2012
    1,588
    1,410
    60
    Yes, Start menu and other functionalities will still work if you remove system apps.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. halasz

    halasz MDL Member

    Jan 13, 2013
    116
    35
    10
    #56 halasz, Aug 27, 2015
    Last edited by a moderator: Apr 20, 2017
  17. tistou77

    tistou77 MDL Expert

    Mar 22, 2008
    1,823
    573
    60
    Thanks :)

    I will remove all apps "Metro"
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. P.J

    P.J MDL ☂

    Jul 30, 2009
    274
    43
    10
    What command should I use to bring back and install the SearchApp?
    I have lost it :(
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60
    #59 tnx, Aug 27, 2015
    Last edited by a moderator: Apr 20, 2017
  20. halasz

    halasz MDL Member

    Jan 13, 2013
    116
    35
    10
    #60 halasz, Aug 27, 2015
    Last edited by a moderator: Apr 20, 2017
    No, the script works. It was an example for @Garbellano as he said he couldn't do it.

    I was too lazy to cut out the relevant bit but for system apps it is like this - just as you say...

    Code:
      $needles = 
      @( "BioEnrollment"
           "ContactSupport"
           #"Cortana"       # This will disable startmenu search.
           #"Defender"
           #"Feedback"
           "Flash"
           #"OneDrive"
           "Xbox"
      )
    
      foreach ($needle in $needles) 
      { $pkgs = (ls "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages" |
        where Name -Like "*$needle*")
    
       foreach ($pkg in $pkgs)
       { $pkgname = $pkg.Name.split('\')[-1]
    
        Takeown-Registry($pkg.Name)
        Takeown-Registry($pkg.Name + "\Owners")
        
        Set-ItemProperty -Path ("HKLM:" + $pkg.Name.Substring(18)) -Name Visibility -Value 1
        New-ItemProperty -Path ("HKLM:" + $pkg.Name.Substring(18)) -Name DefVis -PropertyType DWord -Value 2
        Remove-Item      -Path ("HKLM:" + $pkg.Name.Substring(18) + "\Owners")
    
        dism.exe /Online /Remove-Package /PackageName:$pkgname /NoRestart
     
        $appPath="$Env:LOCALAPPDATA\Packages\$pkgname*"
        Remove-Item $appPath -Recurse -Force -ErrorAction 0
        }
      }