Completely eradicate Telemetry, Defender, One drive, Cortana (and other things).

Discussion in 'Windows 10' started by T-S, Aug 5, 2015.

  1. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,221
    90,866
    340
    wimtweak calls PkgMgr which is depracated and calls DISM
     
  2. Supern00b

    Supern00b MDL Addicted

    Dec 30, 2010
    762
    556
    30
    Yes, but on it's own DISM cannot remove those packages.
    It will be necessary to take ownership of every single key and then we could use DISM.
    Wimtweak somewhat "automates" that task.

    abbodi1406, how could we access the registry on a mounted wim and take ownership of the keys?
    Can we use a simple batch or will PS be mandatory for that?

    Cheers.
     
  3. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,221
    90,866
    340
    Of course wim_tweak in needed, but only for unhiding.. dism for removal

    either PS or SetACL tool
     
  4. Supern00b

    Supern00b MDL Addicted

    Dec 30, 2010
    762
    556
    30
    Yes, I know SetACl and the syntax. It's awesome.
    So for me DISM would be the preferred method, PS seems a bit difficult still.
    The procedure would be:

    - Mount image
    - Unhide packages with wimtweak
    - Take ownership of the affected reg keys with SetACL
    - Remove with DISM
    - Hide again with wimtweak
    - unmount commit.

    To connect to the offline registry, we can use REG LOAD and to unload we can use REG UNLOAD.
    Now only issue ramaining is to put this in a batch file to have it automated.

    Cheers.
     
  5. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,694
    267
    60
    I know what you mean about a batch or even .exe to automate the sequences. I actually don't mind seeing what is going on .
    I have been messing about with Autoplay Media Studio to make a nice little GUI for all this. But hey I know one or two things but not enough to build one.:eek:
     
  6. Supern00b

    Supern00b MDL Addicted

    Dec 30, 2010
    762
    556
    30
    Perhaps AutoIt could be an alternative to build a script with GUI. We could even make the packages selectable.
    The ACL part is doable for me, but the gui part will be difficult.

    Cheers.
     
  7. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,694
    267
    60
    #128 tnx, Aug 31, 2015
    Last edited: Aug 31, 2015
    I have just taken the time to make two new REG Files.

    One will make all the packages visable
    the other to re-hide all of the packages.

    Full controll has to be taken of the packages key.
    Either manuall or via SetACL

    SORRY

    Unable to post them. I am getting an error saying the text is too large plus the files are too large to attach.

    @mod \ Admin

    If I were to upload these files onto my own little web site could I link out to it from here ?

    I have tested them and they do work. I mounted an image, loaded the reg hive, took controll of the packages key and run my un hide .reg file and made a list. Bingo Long list of packages.
    Run the hide.reg and all packages were hidden again.
     
  8. KNARZ

    KNARZ MDL Addicted

    Oct 9, 2012
    895
    482
    30
    #129 KNARZ, Aug 31, 2015
    Last edited: Aug 31, 2015
    please stop making it overcomplicated...

    use my script as a guideline... unhide single packages with wim tweak and remove with dism. done.
    and don't list en-US/language-LANGUAGE packages in your list they will removed by the main package... also as the subpackages.
     
  9. petok

    petok MDL Senior Member

    May 4, 2009
    351
    201
    10
    some write list on app removed apps into install.wim from package.txt used install_wim_tweak and confirm is work without.
     
  10. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,694
    267
    60
    Why I made the reg files to un-hide and hide the packages is so I and other folk if they wish could make their own lists of packages and choose which to remove.

    One thing I would like to know is who found out which packages to remove in the first place and how.

    We are all just removing packages from list folks have put up. Why those packages. There is a LONG list.
    It is easy enough just to target each and every package chosen to remove.

    Sorry if I am making it more complicated that it should be. :weep:

    I have read on here that a lot of folk are just doings stuff and running scripts willy nilly and not really knowing what they are doing and why they are doing it.

    Sorry again..Wont add owt else..:cool:
     
  11. Microft

    Microft MDL Novice

    Aug 24, 2015
    17
    1
    0
    No more install_wim_tweak after this right ? im keep getting error to enable netfx3 and legacy directplay after using that exe...then everything get corrupte such when im launch powershell it show me mscoree.dll missing error... better explanation about the bug here
    No more install_wim_tweak after this right ? im keep getting error to enable netfx3 and legacy directplay after using that exe...then everything get corrupte such when im launch powershell it show me mscoree.dll missing error... better explanation about the bug here:
    msfn.org/board/topic/104130-guide-win-server-2008/page-7#entry827919


    Link please :worthy::worthy:


    Link please :worthy::worthy:
     
  12. KNARZ

    KNARZ MDL Addicted

    Oct 9, 2012
    895
    482
    30
    #133 KNARZ, Aug 31, 2015
    Last edited by a moderator: Apr 20, 2017
  13. Supern00b

    Supern00b MDL Addicted

    Dec 30, 2010
    762
    556
    30
    KNARZ, using it the way you describe (wimtweak), will it allow DISM to remove the packages without complaining about error 5: Access denied?

    Cheers.
     
  14. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,694
    267
    60
    It will do, access denied error just means you are trying to alter a file,reg key without taking full controll.
     
  15. Microft

    Microft MDL Novice

    Aug 24, 2015
    17
    1
    0
    Anyone know what the package name for "Task, Tablet Mode, Connect, Note, VPN , Quiet Hour ,Location" ?I want to delete them.
     
  16. Shayne

    Shayne MDL Addicted

    Jul 31, 2009
    752
    181
    30
    Why is this post not a sticky but one that repeats this info is? Would be nice if this could be renamed to removing windows 10 modules and kept up top. This procedure works well on a mounted wim with a bat file. Thank you TS.

    Regards
     
  17. Supern00b

    Supern00b MDL Addicted

    Dec 30, 2010
    762
    556
    30
    Agree.
    This seems to be the most effective way to remove the crap from Windows 10. Should be sticky.

    Cheers.
     
  18. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,694
    267
    60
    @T-S

    Is there a list of packages which are safe to remove.
    Just wondering.:cool:
     
  19. petok

    petok MDL Senior Member

    May 4, 2009
    351
    201
    10
    #140 petok, Sep 3, 2015
    Last edited: Sep 3, 2015
    I test with remove and again remove "from install.wim" for now this is removed Xbox,Hyper-V,Microsoft-OneCore-AllJoyn,Microsoft-OneCore-Biometrics,Microsoft-OneCore-CameraCaptureUI,Microsoft-OneCore-Gaming-Preview,Microsoft-OneCore-Maps,Microsoft-OneCore-RemoteDesktopServices,Microsoft-OneCore-WinRT-Core, apps is removed from package.txt and more but testing for now is good with from list but final I dont know when be create list for secure remove apps have more in list and need analyze...