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
    #61 tnx, Aug 27, 2015
    Last edited by a moderator: Apr 20, 2017

    whoops..My bad

    :eek:
     
  2. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60

    I will test this out for you.

    Just happen to be messing.
     
  3. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60
    I have just found summet out.
    I have mounted my Win 10 pro image, which has all the packages intact.
    I have loaded the reg hive.

    When I search
    Both of the package names you put up point to the OWNERS KEY.

    If I am doing it right I see the packages as
    I am not 100% sure but this is my findings.

    maybe somebody else in the know can check this out.

    Sorry If I getting it wrong..

    :cool:
     
  4. halasz

    halasz MDL Member

    Jan 13, 2013
    116
    35
    10
    #64 halasz, Aug 27, 2015
    Last edited by a moderator: Apr 20, 2017
    I have these 2 on the machine I didn't remove it from... I was looking in a different path in the script I copied and my package names are not the same as yours. They are BioEnrollment not Biometrics....

    The keys I was looking at are:

    Code:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Windows-BioEnrollment-Base-Package~31bf3856ad364e35~amd64~en-US~10.0.10240.16384 
    
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Windows-BioEnrollment-Base-Package~31bf3856ad364e35~amd64~~10.0.10240.1638~
    In regedit for both of these keys, set Visibility to 1, delete Owners key and add a DWORD DefVis value 2

    Then you can remove them:

    Code:
    dism.exe /Online /Remove-Package /PackageName: Microsoft-Windows-BioEnrollment-Base-Package~31bf3856ad364e35~amd64~en-US~10.0.10240.16384 /NoRestart
    
    dism.exe /Online /Remove-Package /PackageName: Microsoft-Windows-BioEnrollment-Base-Package~31bf3856ad364e35~amd64~~10.0.10240.1638~ /NoRestart 
    That is what I did by script and it worked. I don't have another machine to test with today - perhaps tomorrow I will refresh again and I'll try it manually if you have no luck.
     
  5. Garbellano

    Garbellano MDL Addicted

    Aug 13, 2012
    947
    248
    30
    #65 Garbellano, Aug 27, 2015
    Last edited by a moderator: Apr 20, 2017
  6. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60
    Access is denied.
    Have you taken control of the reg key ?
     
  7. maverick09

    maverick09 MDL Junior Member

    May 30, 2012
    72
    14
    0
    clean install Windows 10 Enterprise LTSB :clap:
     
  8. Garbellano

    Garbellano MDL Addicted

    Aug 13, 2012
    947
    248
    30
    no .
     
  9. Supern00b

    Supern00b MDL Addicted

    Dec 30, 2010
    728
    540
    30
    Can you please elaborate on the key that we have to take ownership of?

    Cheers.
     
  10. halasz

    halasz MDL Member

    Jan 13, 2013
    116
    35
    10
    You have to take ownership of the 2 keys in post 64 and then make the 3 changes to both keys. Only then can you run dism.
     
  11. Supern00b

    Supern00b MDL Addicted

    Dec 30, 2010
    728
    540
    30
    Thanks, I seem to get it now. For each package it is the same procedure, right?

    Cheers.
     
  12. halasz

    halasz MDL Member

    Jan 13, 2013
    116
    35
    10
    #72 halasz, Aug 30, 2015
    Last edited by a moderator: Apr 20, 2017
    No, only for system apps. For normal (that have the uninstall option on the start menu) ones you don't need to do anything with registry.

    For example you can type this in admin powershell:

    Code:
    $app = "Microsoft.BingFinance"
    
    Get-AppxPackage -Name  $app -AllUsers | Remove-AppxPackage
    
    Get-AppXProvisionedPackage -Online | where DisplayName -EQ $app | Remove-AppxProvisionedPackage -Online
    Or you could run the script in post #56