13 Feb 2019

And Then More Ripper Win 10...

Continuing the good Rippers comprehensive instructions relating to lightening the load on windows 10 imposed by all those applications you’ll never use and didn’t even ask for...  

   You should now have a list of all installed apps on your desktop called 'Apps_list.txt', which you are now going to edit. This gives the name of the app packages on the left and their fullname (the one you need) on the right. First, delete all the lines for the apps you want to keep, then go through the list again, removing the 'Name' part of each app, just leaving its fullname.
   You don't have to do this bit, you could simply copy/paste each fullname into PowerShell, but you would have to type the removal command in PS each time. To save a bit of work doing that, go to the beginning of the first line containing a fullname and type 'remove-appxpackage'. So you should end up with this (all on one line):
remove-appxpackage Microsoft.BingNews_4.28.3242.0_x64__8wekyb3d8bbwe
Then select/copy the command 'remove-appxpackage ' and paste it at the beginning of each line. Note the space at the end of the command.
   In the following post is my list of apps for removal below, if you have the same apps installed you can simply use this list, but there could be differences depending on your Windows build, and besides there may be apps in my list that you use:
remove-appxpackage Microsoft.BingNews_4.28.3242.0_x64__8wekyb3d8bbwe
remove-appxpackage Microsoft.Services.Store.Engagement_10.0.18101.0_x86__8wekyb3d8bbwe
remove-appxpackage Microsoft.Services.Store.Engagement_10.0.18101.0_x64__8wekyb3d8bbwe
remove-appxpackage DolbyLaboratories.DolbyAccess_2.3.301.0_x64__rz1tebttyb220
remove-appxpackage Microsoft.XboxApp_44.44.7002.0_x64__8wekyb3d8bbwe
remove-appxpackage Microsoft.Print3D_3.1.2612.0_x64__8wekyb3d8bbwe
remove-appxpackage Microsoft.MicrosoftOfficeHub_17.10314.31700.1000_x64__8wekyb3d8bbwe
remove-appxpackage Microsoft.Wallet_2.2.18065.0_x64__8wekyb3d8bbwe
remove-appxpackage Microsoft.XboxSpeechToTextOverlay_1.21.13002.0_x64__8wekyb3d8bbwe
remove-appxpackage Microsoft.StorePurchaseApp_11810.1001.10.0_x64__8wekyb3d8bbwe
remove-appxpackage Microsoft.XboxIdentityProvider_12.46.25001.0_x64__8wekyb3d8bbwe
remove-appxpackage Microsoft.WindowsStore_11810.1001.12.0_x64__8wekyb3d8bbwe
remove-appxpackage Microsoft.WindowsSoundRecorder_10.1804.911.1000_x64__8wekyb3d8bbwe
remove-appxpackage Microsoft.OneConnect_3.1811.3082.0_x64__8wekyb3d8bbwe
remove-appxpackage Microsoft.Xbox.TCUI_1.24.10001.0_x64__8wekyb3d8bbwe
remove-appxpackage Microsoft.Getstarted_6.15.12641.0_x64__8wekyb3d8bbwe
remove-appxpackage Microsoft.WindowsCalculator_10.1804.2492.0_x64__8wekyb3d8bbwe
remove-appxpackage Microsoft.WindowsAlarms_10.1804.1101.1000_x64__8wekyb3d8bbwe
remove-appxpackage Microsoft.WindowsFeedbackHub_1.1805.2331.0_x64__8wekyb3d8bbwe
remove-appxpackage Microsoft.Microsoft3DViewer_5.1811.27012.0_x64__8wekyb3d8bbwe
remove-appxpackage Microsoft.WindowsMaps_5.1809.2762.0_x64__8wekyb3d8bbwe
remove-appxpackage Microsoft.MSPaint_5.1811.20017.0_x64__8wekyb3d8bbwe
remove-appxpackage Microsoft.MicrosoftStickyNotes_2.1.18.0_x64__8wekyb3d8bbwe
remove-appxpackage Microsoft.People_10.3.3472.2000_x64__8wekyb3d8bbwe
remove-appxpackage Microsoft.BingWeather_4.28.3242.0_x64__8wekyb3d8bbwe
remove-appxpackage Microsoft.XboxGameOverlay_1.37.11001.0_x64__8wekyb3d8bbwe
remove-appxpackage Microsoft.ZuneMusic_10.18112.10711.0_x64__8wekyb3d8bbwe
remove-appxpackage Microsoft.GetHelp_10.1706.13371.0_x64__8wekyb3d8bbwe
remove-appxpackage Microsoft.Office.OneNote_16001.11126.20076.0_x64__8wekyb3d8bbwe
remove-appxpackage Microsoft.MicrosoftSolitaireCollection_4.2.11280.0_x86__8wekyb3d8bbwe
remove-appxpackage Microsoft.ZuneVideo_10.18112.14311.0_x64__8wekyb3d8bbwe
remove-appxpackage Microsoft.SkypeApp_14.37.98.0_x64__kzf8qxf38zg5c
remove-appxpackage Microsoft.Windows.Photos_2019.18112.20010.0_x64__8wekyb3d8bbwe
remove-appxpackage Microsoft.MicrosoftEdge_41.16299.820.0_neutral__8wekyb3d8bbwe
remove-appxpackage Microsoft.XboxGameCallableUI_1000.16299.637.0_neutral_neutral_cw5n1h2txyewy
remove-appxpackage microsoft.windowscommunicationsapps_16005.11029.20108.0_x64__8wekyb3d8bbwe
remove-appxpackage Microsoft.Messaging_4.1810.2922.0_x64__8wekyb3d8bbwe
get-appxpackage *soundrecorder* | remove-appxpackage
    
   Simply copy each line in the list and paste it into Powershell (run as admin) and hit the return key. App gone. Having made this list you could change the filetype from '.txt' to '.bat' and run that as admin, but in my opinion its best to do this one app at a time, noting any failed removals along the way. And that's it - you should notice after this that the computer boots up at an amazing speed. Incidentally, to keep this speed increase I have been looking to replace all software I use with portable programs. This keeps the registry from getting bloated. I've come up with quite a few good ones so far, and all freeware.
   In the next part, below, I will publish a list of registry keys, which will prevent the removed apps from returning during a Windows update.

   Now that you have removed all unwanted apps, you will need to add some keys to the registry, which will tell Windows updates not to re-install them. The registry is a complex hierarchy of folders and though there is a registry editor in Windows (regedit), it is much easier to create the keys in a .reg file, which is just a text file with the '.reg' file extension. However, this file must be formatted properly.
   For this you will again be using the fullname section of your Apps_List.txt file. You will also need to create a new text file and there is a lot of copying and pasting so a text editor with a tabbed interface is really useful with this, both files can be open in the same editor and copying/pasting is so much easier than using Windows Notepad.
   To create the new text file, right-click on an empty area of the desktop and scroll down to 'New' in the menu. A sub menu will open and from this choose 'Text Document'. The icon will now appear on your desktop. The name does not matter so you can just use the default name for now. So with both files open in the text editor, the first line in the new file has to be:  Windows Registry Editor Version 5.00
   Follow this with a couple of blank lines. Fortunately all the keys are in the same registry folder, which allows me to just use the first example. All the keys are on ONE LINE (Mac's blog will word wrap). The first thing to do is create the main folder for the keys, so the first line is:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Deprovisioned]
   Having typed this out, copy it and paste it on as many lines as there are fullnames in the Apps_List.txt file. So if there are 30 removed apps, you should have 31 instances, each on its own line. Separate these lines with a blank line between each. Note that the line is enclosed in square brackets. Starting with the SECOND instance, place a backslash '\' before the closing square bracket on each line. There are no spaces in any line. The file is now prepared to begin copying/pasting the fullnames from the Apps_List file.
   Switch over to the Apps_List file and select/copy the first fullname. In my case this would be Bing News:
Microsoft.BingNews_4.28.3242.0_x64__8wekyb3d8bbwe
Switch back to the new file and again starting with the SECOND instance, paste the fullname in between the backslash you added earlier and the closing square bracket. This would give you (all on one line);
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Deprovisioned\Microsoft.BingNews_4.28.3242.0_x64__8wekyb3d8bbwe]
   Do this for all fullnames in the Apps_List.txt file. When you have finished, save the new file then rename it, changing the filetype from '.txt' to '.reg' and double click it to automatically add the registry keys.

One more time; any of the above are done at your own risk and please remember, as I never do, the importance of ol’ Mr Backup before proceeding. As the old quotes goes, a misplaced decimal point will always end up where it’ll do the greatest damage.

Quote;  Mark Minasi.

“If McDonalds were run like a software company, one out of every hundred Big Macs would give you food poisoning, and the response would be, ‘We’re sorry, here’s a coupon for two more.’ “

2 comments:

Ripper said...

Mac, if running portable software interests you, give these sites a look through. When I hit on what seems to be a gem, I don't download the software from these sites, I go to the author's website (there are links). That way I can see when the latest release was, and if it covers my operating system. Its like being at a jumble sale, you never know what you will drop on. There are many more portable freeware sites but I've found these 2 to search through for the moment. There is also portableapps.com but they seem to pack ordinary software in their own wrapper/launcher which I don't like the idea of. A portable app should be able to run as a stand alone program and save everything to its home folder. Anyway, take a look, if you can replace any program with a portable version which does not write to the registry, it will keep your operating system light and fast.

https://www.portablefreeware.com/
http://www.snapfiles.com/features/portable-apps.html


Mac said...

Ripper,
When I was a working fellow I had a portable drive loaded with portable software but I haven't looked at any for a while and I'll sure take a look at those sites. Thanks.
And I'm 'working' on your tutorial for linking on the left. Give me a couple of days...