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

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

  1. T-S

    T-S MDL Guru

    Dec 14, 2012
    3,984
    1,331
    120
    #41 T-S, Aug 7, 2015
    Last edited: Aug 7, 2015
    (OP)
    Just check your package list.

    Cortana:

    Microsoft-Windows-Cortana-Package~31bf3856ad364e35~amd64~it-IT~10.0.10240.16384
    Microsoft-Windows-Cortana-Package~31bf3856ad364e35~amd64~~10.0.10240.16384
    Microsoft-Windows-Cortana-PAL-Desktop-Package~31bf3856ad364e35~amd64~~10.0.10240.16384

    P.S. This kills completely the magnifing glass function. BTW the standard search will work. Just use Classic Shell and anything will work in win 7 style.
     
  2. Kuertt

    Kuertt MDL Novice

    Jun 23, 2014
    9
    1
    0
    My Config ...LTSB Enterprise ita iso :p

    In powershell:

    DISM /Mount-Wim /Wimfile:C:\install.wim /index:1 /MountDir:C:\1

    Dism /image:C:\1 /Add-Package /PackagePath:C:\2 (Update folder)

    install_wim_tweak.exe /p "C:\1" /c Microsoft-OneCore-TroubleShooting-Package~31bf3856ad364e35~amd64~it-IT~10.0.10240.16384 /r
    install_wim_tweak.exe /p "C:\1" /c Microsoft-OneCore-TroubleShooting-Package~31bf3856ad364e35~amd64~~10.0.10240.16384 /r
    install_wim_tweak.exe /p "C:\1" /c Microsoft-OneCore-TroubleShooting-WOW64-Package~31bf3856ad364e35~amd64~it-IT~10.0.10240.16384 /r
    install_wim_tweak.exe /p "C:\1" /c Microsoft-OneCore-TroubleShooting-WOW64-Package~31bf3856ad364e35~amd64~~10.0.10240.16384 /r
    install_wim_tweak.exe /p "C:\1" /c Microsoft-Windows-OneDrive-Setup-Package~31bf3856ad364e35~amd64~~10.0.10240.16384 /r
    install_wim_tweak.exe /p "C:\1" /c Windows-Defender-AM-Default-Definitions-Package~31bf3856ad364e35~amd64~~10.0.10240.16384 /r
    install_wim_tweak.exe /p "C:\1" /c Windows-Defender-Client-Package~31bf3856ad364e35~amd64~it-IT~10.0.10240.16384 /r
    install_wim_tweak.exe /p "C:\1" /c Windows-Defender-Client-Package~31bf3856ad364e35~amd64~~10.0.10240.16384 /r
    install_wim_tweak.exe /p "C:\1" /c Windows-Defender-Client-WOW64-Package~31bf3856ad364e35~amd64~it-IT~10.0.10240.16384 /r
    install_wim_tweak.exe /p "C:\1" /c Windows-Defender-Client-WOW64-Package~31bf3856ad364e35~amd64~~10.0.10240.16384 /r
    install_wim_tweak.exe /p "C:\1" /c Windows-Defender-Group-Policy-Package~31bf3856ad364e35~amd64~it-IT~10.0.10240.16384 /r
    install_wim_tweak.exe /p "C:\1" /c Windows-Defender-Group-Policy-Package~31bf3856ad364e35~amd64~~10.0.10240.16384 /r


    Dism /image:C:\1 /Disable-Feature /FeatureName:printing-Foundation-Features
    Dism /image:C:\1 /Disable-Feature /FeatureName:printing-Foundation-InternetPrinting-Client
    Dism /image:C:\1 /Disable-Feature /FeatureName:FaxServicesClientPackage
    Dism /image:C:\1 /Disable-Feature /FeatureName:printing-XPSServices-Features
    Dism /image:C:\1 /Disable-Feature /FeatureName:printing-PrintToPDFServices-Features
    Dism /image:C:\1 /Disable-Feature /FeatureName:Xps-Foundation-Xps-Viewer
    Dism /image:C:\1 /Disable-Feature /FeatureName:Internet-Explorer-Optional-amd64

    Dism /Unmount-Wim /MountDir:C:\1 /commit
     
  3. coromonadalix

    coromonadalix MDL Senior Member

    Jul 21, 2009
    440
    87
    10
    Cortana:

    Microsoft-Windows-Cortana-Package~31bf3856ad364e35~amd64~it-IT~10.0.10240.16384
    Microsoft-Windows-Cortana-Package~31bf3856ad364e35~amd64~~10.0.10240.16384
    Microsoft-Windows-Cortana-PAL-Desktop-Package~31bf3856ad364e35~amd64~~10.0.10240.16384

    checked in my 2 entreprises iso : 10240.16384.150709-1700.TH1_CLIENTENTERPRISE_VOL_X64FRE_EN-US and en_windows_10_enterprise_2015_ltsb_x64_dvd_6848446.iso

    I dont have thoses packages listed ??? but my computer was installed from the first iso, and cortana runs as an un-killable service ...

    install_wim_tweak was executed in win 8.1 x64 in a admin cmd windows, do i have to start a powershell instead ?
     
  4. T-S

    T-S MDL Guru

    Dec 14, 2012
    3,984
    1,331
    120
    Looks very strange to me.

    Do you mean you checked this offline from win 8.1?

    Anyway thec ommandas should work nicely in PS too, but I used CMD.
     
  5. coromonadalix

    coromonadalix MDL Senior Member

    Jul 21, 2009
    440
    87
    10
    well i dont understand the online offline thing, but i think wim-tweak is giving me what is included in my win 8.1 not the win10 ??? i'm trying to set the path ...
    and recheck on a new clean installation ??
     
  6. T-S

    T-S MDL Guru

    Dec 14, 2012
    3,984
    1,331
    120
    #46 T-S, Aug 8, 2015
    Last edited: Aug 8, 2015
    (OP)
    Online=run win 10 and use the commands inside it to remove some packages from the actual OS (the currently running OS will be modded)

    Offline= remove the features from the WIM image before installing it (the installation media, will be modded)

    You need to mount the W10 WIM image, and then specify the mount point to operate to that image.

    There are zillions of tutorials about how to mount and modify an offline image.

    And also an example here on message #43
     
  7. coromonadalix

    coromonadalix MDL Senior Member

    Jul 21, 2009
    440
    87
    10
    ok now i'm more lost

    Now i am with an win10 entreprise windows.


    Is wim_tweak can mount an install.win or not ??, i whant offline modifications of an install.wim iso

    If i do an online modification, i can't do it (file access error) under a powershell or command prompt with admin mode ...
     
  8. T-S

    T-S MDL Guru

    Dec 14, 2012
    3,984
    1,331
    120
    For offline mode the WIM must be mounted with DISM, then you can use wim_tweak

    Try to use the alternate wim_tweak way instead of DISM.
     
  9. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60
    #49 tnx, Aug 9, 2015
    Last edited by a moderator: Apr 20, 2017
    Can I add..

    I have just used this .exe to remove Defender. In the midst of testing my results.
    It does look a pretty good tool though.

    One thing I found useful was to copy the exe into
    Code:
    C:\Windows\System32
    Then windows can easily find it.
     
  10. Boops

    Boops MDL Addicted

    Jan 5, 2008
    912
    1,203
    30
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. coromonadalix

    coromonadalix MDL Senior Member

    Jul 21, 2009
    440
    87
    10
    #52 coromonadalix, Aug 9, 2015
    Last edited: Aug 9, 2015
    Copied install_wim_tweak in my system32

    The abrupt method is to remove/delete C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy form my Win 8.1.
    No problems shown, no cortana processes until now.


    Dism mounted the install.win, taken a looooong time.

    install_wim_tweak.exe /p I:\1 /c "Cortana" /r

    Creating BKP of registry file... OK
    Mounting registry file... OK
    Taking Ownership... OK
    Editing 'Packages' subkeys 3/3OK
    Editing 'PackagesPending' subkeys FAIL - Key not exist
    Modifying registry completed sucessfully.
    Unmounting key... OK
    Removing 'Packages'... OK
    Removed packages successfully.


    dism /image:i:\1 /Get-Packages > Dism_Get_Packages_List.txt cortana packages still showed 3 times ???

    unmounted with dism ... will try this install.wim
     
  12. tnx

    tnx MDL Expert

    Sep 2, 2008
    1,695
    267
    60
    Are you checking for the packages before committing ?
    Would it still show up before committing or would you have to commit then check again ?
     
  13. coromonadalix

    coromonadalix MDL Senior Member

    Jul 21, 2009
    440
    87
    10
    #54 coromonadalix, Aug 9, 2015
    Last edited: Aug 9, 2015
    argh forgot the commit changes things pfff I will try again ??

    I heard that i have to hide the package again, it may crap things.

    Just seen dism gui softwares like dism++ and dism gui, will try thoses if they will show packages once unhidden with wim_tweak


    Woah cortana came back from the dead, even with the app folder removed .....:mad: C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy
     
  14. coromonadalix

    coromonadalix MDL Senior Member

    Jul 21, 2009
    440
    87
    10
    #55 coromonadalix, Aug 10, 2015
    Last edited: Aug 10, 2015
    well after a lot of reading, here's my tryout, i have to put back the install.win in my en_windows_10_enterprise_2015_ltsb_x64_dvd_6848446.iso and do a run test... too tired

    C:\WINDOWS\system32>I:

    DISM /Mount-Wim /Wimfile:I:\install.wim /index:1 /MountDir:I:\1 ; mount the install.win at root of I:


    install_wim_tweak.exe /p "I:\1" /l ; create the packages.txt (long text file) at root of I:


    ;1819 items

    ;Cortana
    install_wim_tweak.exe /p "I:\1" /c Microsoft-Windows-Cortana-Package~31bf3856ad364e35~amd64~en-US~10.0.10240.16384 /r
    install_wim_tweak.exe /p "I:\1" /c Microsoft-Windows-Cortana-Package~31bf3856ad364e35~amd64~~10.0.10240.16384 /r ; take a long time
    install_wim_tweak.exe /p "I:\1" /c Microsoft-Windows-Cortana-PAL-Desktop-Package~31bf3856ad364e35~amd64~~10.0.10240.16384 /r

    ;Xbox
    install_wim_tweak.exe /p "I:\1" /c Microsoft-OneCore-AppRuntime-xbox-Package~31bf3856ad364e35~amd64~en-US~10.0.10240.16384 /r
    install_wim_tweak.exe /p "I:\1" /c Microsoft-OneCore-AppRuntime-xbox-Package~31bf3856ad364e35~amd64~~10.0.10240.16384 /r
    install_wim_tweak.exe /p "I:\1" /c Microsoft-Xbox-GameCallableUI-Package~31bf3856ad364e35~amd64~en-US~10.0.10240.16384 /r
    install_wim_tweak.exe /p "I:\1" /c Microsoft-Xbox-GameCallableUI-Package~31bf3856ad364e35~amd64~~10.0.10240.16384 /r
    install_wim_tweak.exe /p "I:\1" /c Microsoft-Xbox-IdentityProvider-Package~31bf3856ad364e35~amd64~en-US~10.0.10240.16384 /r
    install_wim_tweak.exe /p "I:\1" /c Microsoft-Xbox-IdentityProvider-Package~31bf3856ad364e35~amd64~~10.0.10240.16384 /r
    install_wim_tweak.exe /p "I:\1" /c Microsoft-OneCore-AppRuntime-WOW64-xbox-Package~31bf3856ad364e35~amd64~en-US~10.0.10240.16384 /r
    install_wim_tweak.exe /p "I:\1" /c Microsoft-OneCore-AppRuntime-WOW64-xbox-Package~31bf3856ad364e35~amd64~~10.0.10240.16384 /r
    install_wim_tweak.exe /p "I:\1" /c Microsoft-OneCore-Networking-XboxLive-Package~31bf3856ad364e35~amd64~en-US~10.0.10240.16384 /r
    install_wim_tweak.exe /p "I:\1" /c Microsoft-OneCore-Networking-XboxLive-Package~31bf3856ad364e35~amd64~~10.0.10240.16384 /r
    install_wim_tweak.exe /p "I:\1" /c Microsoft-OneCore-Networking-XboxLive-WOW64-Package~31bf3856ad364e35~amd64~en-US~10.0.10240.16384 /r
    install_wim_tweak.exe /p "I:\1" /c Microsoft-OneCore-Networking-XboxLive-WOW64-Package~31bf3856ad364e35~amd64~~10.0.10240.16384 /r
    install_wim_tweak.exe /p "I:\1" /c Microsoft-Windows-Client-Drivers-xbox-Package~31bf3856ad364e35~amd64~en-US~10.0.10240.16384 /r
    install_wim_tweak.exe /p "I:\1" /c Microsoft-Windows-Client-Drivers-xbox-Package~31bf3856ad364e35~amd64~~10.0.10240.16384 /r
    install_wim_tweak.exe /p "I:\1" /c Microsoft-Windows-Client-Features-Package-AutoMerged-xbox~31bf3856ad364e35~amd64~en-US~10.0.10240.16384 /r
    install_wim_tweak.exe /p "I:\1" /c Microsoft-Windows-Client-Features-Package-AutoMerged-xbox~31bf3856ad364e35~amd64~~10.0.10240.16384 /r
    install_wim_tweak.exe /p "I:\1" /c Microsoft-Windows-Client-Features-WOW64-Package-AutoMerged-xbox~31bf3856ad364e35~amd64~en-US~10.0.10240.16384 /r
    install_wim_tweak.exe /p "I:\1" /c Microsoft-Windows-Client-Features-WOW64-Package-AutoMerged-xbox~31bf3856ad364e35~amd64~~10.0.10240.16384 /r


    ;Onedrive
    install_wim_tweak.exe /p "I:\1" /c Microsoft-Windows-OneDrive-Setup-Package~31bf3856ad364e35~amd64~~10.0.10240.16384 /r


    ;Telemetry
    install_wim_tweak.exe /p "I:\1" /c Microsoft-OneCore-AllowTelemetry-Reduced-Default-Package~31bf3856ad364e35~amd64~~10.0.10240.16384 /r
    install_wim_tweak.exe /p "I:\1" /c Microsoft-OneCore-TroubleShooting-Package~31bf3856ad364e35~amd64~en-US~10.0.10240.16384 /r
    install_wim_tweak.exe /p "I:\1" /c Microsoft-OneCore-TroubleShooting-Package~31bf3856ad364e35~amd64~~10.0.10240.16384 /r
    install_wim_tweak.exe /p "I:\1" /c Microsoft-OneCore-TroubleShooting-WOW64-Package~31bf3856ad364e35~amd64~en-US~10.0.10240.16384 /r
    install_wim_tweak.exe /p "I:\1" /c Microsoft-OneCore-TroubleShooting-WOW64-Package~31bf3856ad364e35~amd64~~10.0.10240.16384 /r


    ;Search
    install_wim_tweak.exe /p "I:\1" /c Microsoft-Windows-Search2-base-Package~31bf3856ad364e35~amd64~en-US~10.0.10240.16384 /r
    install_wim_tweak.exe /p "I:\1" /c Microsoft-Windows-Search2-base-Package~31bf3856ad364e35~amd64~~10.0.10240.16384 /r
    install_wim_tweak.exe /p "I:\1" /c Microsoft-Windows-Search2-Package~31bf3856ad364e35~amd64~en-US~10.0.10240.16384 /r
    install_wim_tweak.exe /p "I:\1" /c Microsoft-Windows-Search2-Package~31bf3856ad364e35~amd64~~10.0.10240.16384 /r


    Dism /Commit-Image /MountDir:I:\1


    install_wim_tweak.exe /p "I:\1" /l ; recheck removed packages with the packages.txt file

    install_wim_tweak.exe /p I:\1 /h /l ; rehide all packages, avoiding breaking things in the OS


    dism /unmount-Wim /MountDir:I:\1 /commit
     
  15. coromonadalix

    coromonadalix MDL Senior Member

    Jul 21, 2009
    440
    87
    10
    Seem's to have worked, no install errors :clap:

    No Cortana is loaded or installed, no xbox, receiving the kb3081424, realtek audio and NVidia updates.
     
  16. wasd123

    wasd123 MDL Novice

    Jul 20, 2015
    29
    11
    0

    Do you have the OneDrive icon in the explorer or it doesn't appear because you delete the package?
     
  17. coromonadalix

    coromonadalix MDL Senior Member

    Jul 21, 2009
    440
    87
    10
    nope no icon either, official MS updates installed, with no system tweaks, still no change, seem's good, :biggrin:

    Will retry a new test with the "Microsoft.BioEnrollment_cw5n1h2txyewy" package removed
     
  18. wasd123

    wasd123 MDL Novice

    Jul 20, 2015
    29
    11
    0

    I'm doing the same as you but removing Metro crap too with this command, not tested yet

    Get-AppXProvisionedPackage -Path c:\1 | Remove-AppxProvisionedPackage -Path c:\1

    Where C:\1 your Mount path
     
  19. coromonadalix

    coromonadalix MDL Senior Member

    Jul 21, 2009
    440
    87
    10
    Some dism commands did not work for me but install wim_tweak did the job