Giter Site home page Giter Site logo

Some Apps Remain about windows10debloater HOT 44 CLOSED

sycnex avatar sycnex commented on May 17, 2024
Some Apps Remain

from windows10debloater.

Comments (44)

Sycnex avatar Sycnex commented on May 17, 2024 1

There is. Basically if you choose to debloat it will rip everything out except for what is in the whitelist.

from windows10debloater.

Sycnex avatar Sycnex commented on May 17, 2024 1

from windows10debloater.

Sycnex avatar Sycnex commented on May 17, 2024 1

Hey wow, thank you for all of your hard work! You single-handedly fixed this. I was going to hop on today to take a look but I see that you have already done that. Great work! I went ahead and updated the script with the version you provided and it indeed does work properly. Sorry about the bad version!

I went ahead and credited you in the comments and will be adding you to the Credit section in the ReadMe :)

I'm happy everything is working for you!

from windows10debloater.

xsisbest avatar xsisbest commented on May 17, 2024 1

Thank you very much for the compliment but I don't feel I did anything really except add "Apps" to the end of one line of code but this was all your original code. I just modified it to my liking.
Just so other users know if you come across this thread, you can add any app into the whitelist and it should keep it. Look under Sycnex Windows10Debloater.ps1 for a list of all the different apps and just add them in 2 spots in this script. One is line 40:

[regex]$WhitelistedApps = 'Microsoft.Paint3D|Microsoft.MSPaint|Microsoft.WindowsCalculator|Microsoft.WindowsStore|Microsoft.MicrosoftStickyNotes|Microsoft.WindowsSoundRecorder|Microsoft.Windows.Photos|CanonicalGroupLimited.UbuntuonWindows'

If you want an app whitelisted just smash it in between one of these like I did for Sticky Notes and Windows sound recorder. Alternatively remove them if you don't want any of them. Just put the Appname and a | with no spaces.

The next spot is line 190. Just Add the app name in between another and add a comma... easy

Then starting on line 193 just copy one of the other whitelisted apps code, preferably not the last one as it has to }} brackets. Copy one at the beginning or whatever and then just alter the name to match the one you wanted to whitelist, or again remove. As you can see I added Sticky Notes and Sound recorder and all I did was change the name of one like Microsoft.Paint3D etc..

Hopefully this works for everyone else cause I love this script. It makes all the headaches of Windows 10 go away for me. I appreciate your amazing work and will most definitely let everyone know about your work!

from windows10debloater.

Sycnex avatar Sycnex commented on May 17, 2024

I was hoping that the blacklist would take care of that. I will take a look a this.

from windows10debloater.

Sycnex avatar Sycnex commented on May 17, 2024

Are you sure the apps remain or are they the tiles?

from windows10debloater.

Sycnex avatar Sycnex commented on May 17, 2024

After looking through my code I just realized that I have FreshPaint whitelisted so that it isn't removed. You can remove it from this line here:

Line 89 [regex]$WhitelistedApps = 'Microsoft.Paint3D|Microsoft.WindowsCalculator|Microsoft.WindowsStore|Microsoft.Windows.Photos|CanonicalGroupLimited.UbuntuonWindows|Microsoft.XboxGameCallableUI|Microsoft.XboxGamingOverlay|Microsoft.Xbox.TCUI|Microsoft.XboxGamingOverlay|Microsoft.XboxIdentityProvider|Microsoft.MicrosoftStickyNotes|Microsoft.MSPaint*'

from windows10debloater.

xsisbest avatar xsisbest commented on May 17, 2024

I see you whitelist sticky notes too but it's getting removed. I noticed in the previous build that was true too but one time I did the manual script instead of the sysprep one and it was there. I wonder if the switches have anything to do with it? I utilize all 3 now in my mdt.. Debloat, stopedge and sysprep. I've installed sysprep version multiple times and sticky notes is gone all 3.

from windows10debloater.

Sycnex avatar Sycnex commented on May 17, 2024

from windows10debloater.

xsisbest avatar xsisbest commented on May 17, 2024

from windows10debloater.

xsisbest avatar xsisbest commented on May 17, 2024

I just noticed in your script you have sticky notes listed like this: #"Microsoft.MicrosoftStickyNotes"

Should it just be Microsoft.Sticky.Notes or is it Microsoft.MicrosoftStickyNotes ? I didn't know if that was just commented out either but it didn't look similar to the other apps that are white listed when it comes to the name of the app. Most have Microsoft.App.Name.

Never mind.. I see the process on my computer and it is Microsoft.MicrosoftStickyNotes. My bad.. Just trying to help carry on :D

from windows10debloater.

Skatterbrainz avatar Skatterbrainz commented on May 17, 2024

Maybe you could add a switch to handle using a white list or just rip everything out?

from windows10debloater.

Sycnex avatar Sycnex commented on May 17, 2024

The debloat function removes everything except for what is listed in the whitelist and then if anything is accidentally removed the FixWhitelistedApps function re-adds them.

from windows10debloater.

Blu3ish avatar Blu3ish commented on May 17, 2024

It seems "My office" and "One note" are not uninstalled, i didnt use the -Sysprep maybe that has something to do with it? why would i use that option anyway? does turning off the store updates have anything to do with it?

from windows10debloater.

Sycnex avatar Sycnex commented on May 17, 2024

The -SysPrep parameter doesn't have anything to do with those not being removed, but SysPrep is used for preparing a Windows Image that will be cloned multiple times. It's largely used in virtualization environments.

I'm just curious, what happens if you run these lines of code @Blu3ish ?

Get-AppxPackage -Name * OneNote * -AllUsers | Remove-AppxPackage
Get-AppxPackage -Name * My Office * -AllUsers | Remove-AppxPackage

P.S. there the asterisks next to OneNote and My Office are meant to be directly at the begging and end of the first and last letter but it wants to use those to make the words italic. Sorry.

from windows10debloater.

Sycnex avatar Sycnex commented on May 17, 2024

Can you try the latest update and use the blacklist that I added in?

from windows10debloater.

xsisbest avatar xsisbest commented on May 17, 2024

Is the blacklist a new parameter? I'm going to try this new build tomorrow first thing.

from windows10debloater.

Sycnex avatar Sycnex commented on May 17, 2024

from windows10debloater.

xsisbest avatar xsisbest commented on May 17, 2024

Oh no worries. I only use the sysprep version. I am trying your newest version tomorrow. I have noticed sticky notes in particular was removed on the last build. Hoping it's still there after deployment. Will post my results. As always thanks so much for all your hard work and constantly replying to the issues!

from windows10debloater.

Sycnex avatar Sycnex commented on May 17, 2024

Done! New parameter is -DebloatSpecificApps.

I changed the name of the function Start-Debloat to DebloatAll, and the new function for the blacklist is DebloatBlacklist.

from windows10debloater.

xsisbest avatar xsisbest commented on May 17, 2024

Does that mean I'll have to change the parameters in my MDT? I currently use - sysprep - debloat -StopEdge.
Do I need to add - debloatall now?

from windows10debloater.

xsisbest avatar xsisbest commented on May 17, 2024

Looks like I'll also take advantage of the privacy switch as well.
Can I add sticky notes to the whitelist and it will retain it or is it more complicated than that? I would prefer to do the - debloatall but that's the one app I'd like to not debloat. Also does this remove one drive as well? Didn't see that in the list of apps removed. Thanks again!

from windows10debloater.

Blu3ish avatar Blu3ish commented on May 17, 2024

The -SysPrep parameter doesn't have anything to do with those not being removed, but SysPrep is used for preparing a Windows Image that will be cloned multiple times. It's largely used in virtualization environments.

I'm just curious, what happens if you run these lines of code @Blu3ish ?

Get-AppxPackage -Name * OneNote * -AllUsers | Remove-AppxPackage
Get-AppxPackage -Name * My Office * -AllUsers | Remove-AppxPackage

P.S. there the asterisks next to OneNote and My Office are meant to be directly at the begging and end of the first and last letter but it wants to use those to make the words italic. Sorry.

Thankyou for the explanation, I copy pasted the new script and it works without a problem at all, it’s great! this should be delivered by every manufacturer as optional script to clean bloatware lol :-)

I added some lines for whitelisting some apps I actually want to keep and I was searching for a fix on the web but I couldn’t really find one.
I got those lines in to my whitelist:
(of course, more than this but that isn’t important)
'Microsoft.Microsoft.BingNews|Microsoft.BingFinance'

Get-AppxPackage -allusers Microsoft.Microsoft.BingNews | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($.InstallLocation)\AppXManifest.xml"}
Get-AppxPackage -allusers Microsoft.BingFinance | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($
.InstallLocation)\AppXManifest.xml"}

Now I would like those apps to stay I tried figuring out why they are still removed while I added them to the whitelist. But What I found out after doing a clean installation of windows 10 without internet connection is that the apps are installed using the live(download) method on start menu, the same is used for the crappy ads and such.

My question is is there a solution to install those apps while not having the live option enabled?

I saw this website explaining how to remove and how to re add apps: https://www.pdq.com/blog/removing-windows-10-apps-with-powershell/
But i think they have never been on the system to begin with since they have to be sideloaded/downloaded or how you want to call it.

It might be the same problem that pojebunny is facing: The Script removes EVERYTHING even though some apps have been removed from the script.
I would really apricate it if you would take a look at it.

Kind regards

Rowan Janse

from windows10debloater.

xsisbest avatar xsisbest commented on May 17, 2024

So I ran the updated script but I think my parameter was set wrong. I used -DebloatAllApps and I see several things like Feedback Hub, Solitaire,Xbox, Groove Music etc still installed. I am going to try and re-run it again but just to make sure and change it to -DebloatAll..
Should this be what my parameters looks like in MDT to invoke the switches? (see link) Not sure I needed the -Privacy one but I just want to make sure I'm coding this correctly. Thank you for the help!
https://drive.google.com/file/d/11ZCG25WP3bPzfN2Q30SOo5x7huw3G1T8/view?usp=sharing

from windows10debloater.

xyipher avatar xyipher commented on May 17, 2024

I just ran, as admin, Windows10SysPrepDebloater.ps1 -DebloatAllApps -SysPep -StopEdgePDF -Privacy

I'm noticing there are a few Apps being left behind: Network Speed Test, Sway, Microsoft News
Picture:
startmenu

On an untouched machine prior to running that script I listed all the AppxPackages and do not see those three apps in the list

Excel Sheet of AppxPackage Apps:
Get-AppxPackage.xlsx

Windows Info:
OS Name Microsoft Windows 10 Enterprise
Version 10.0.17134 Build 17134

from windows10debloater.

xsisbest avatar xsisbest commented on May 17, 2024

I have Feedback hub, Solitaire, Xbox, My Office, One note and Skype. There are a few others too that I wasn't sure if they were removed before or not like alarms and clocks.. not a big deal on that though.
Oddly enough I don't have Sway, SpeedTest or Microsoft news. I used all the same parameters but I used -Sysprep -DebloatAll - StopEdgePDF - Privacy.
I also don't know what the StopEdgePDF is good for as I install Adobe Reader and set it as the default using it's own parameters and still Edge takes over as default PDF reader. Is there a way to set it as Adobe Acrobat Reader in the script somehow?

from windows10debloater.

xsisbest avatar xsisbest commented on May 17, 2024

So after working on this quite a bit today, I've come to a couple conclusions.
The first was on the sysprep debloater, under the Whitelisted apps your parameter was wrong. It says -DebloatApps but it should be DebloatAllApps:

Function FixWhitelistedApps {

Param([switch]$DebloatApps, [switch]$DebloatSpecificApps, [switch]$SysPrep)

Once I changed it to DebloatAllApps it was whitelisting everything you've added and a few more that I added like sticky notes and voice recorder.

I also found that in order for it to remove everything, even if you use the DebloatAllApps parameter, you still have to run DebloatSpecificApps or those apps under the blacklist will still be present. Once I ran the script using all parameters, everything was gone....BUT
Only for the administrator account. When I logged into another account all the apps were there that were under the blacklist like My Office, One Note, Alarms and Clocks, Feedback Hub, Xbox etc...
I don't know what changed from the new one but I used your older script up until recently as it removes everything.. and from every account without issue. I may end up going back to that one which was sometime around June if I recall. Anyway, that one worked flawless for me.
I again run this during my MDT deployment so it's not theoretically being installed during sysprep. In order to use MDT properly, you need to let MDT run sysprep and create a WIM file that will be the base of your install. It's just the OS with all your configurations, settings and apps you want. Then you can customize the install using a task sequence to install other apps and scripts. That's when your script installs so I'm wondering if it's not applying to the default user hive so that it applies to all users. But your old script ran at the same time after sysprep and it worked fine so I'm a bit confused.

I feel like I'm close... the admin account is perfect when my MDT is finished and all apps are gone using all parameters but any other accounts the blacklisted apps persist. That's the gist. Thanks again for all your hard work!

from windows10debloater.

xsisbest avatar xsisbest commented on May 17, 2024

I added the updated white list apps to your old script and it now is working perfectly, removing everything I need and for all users.
The one thing I notice right off the bat is the command in your old script for whitelistedapps, it had some code for all users where your more recent does not. I'm thinking that is the difference in it not copying to other user accounts.
Here is your old one with my modifications. I removed the StopEdge pdf stuff and added sticky notes and voice recorder to the whitlistedapps but other than that its the same. It also only utilizes the - SysPrep and - Debloat switches.
https://drive.google.com/file/d/11bc6l2OJLWe8iu2b93GqAf1iiDBu3O71/view?usp=sharing

from windows10debloater.

xyipher avatar xyipher commented on May 17, 2024

Got an error on Line 29: & sc config InstallService start=disabled

I changed the command and it works for me now

& Set-Service -Name InstallService -StartupType Disabled

from windows10debloater.

xyipher avatar xyipher commented on May 17, 2024

Line 42, I also got an error. Windows Enterprise Build 1803.

A reboot and re-run of the script was required for it to work properly as suggested here:
line 42 error

FIXED: Re-running line 41 fixes the issue of having to reboot.

Proposed this and fix above. No errors now when running on Windows 10 Enterprise 1803

from windows10debloater.

Sycnex avatar Sycnex commented on May 17, 2024

Thank you all for the help and fixes!

from windows10debloater.

Sycnex avatar Sycnex commented on May 17, 2024

Do you guys have any suggestions for what should go into the script next?

from windows10debloater.

Skatterbrainz avatar Skatterbrainz commented on May 17, 2024

Does your script provide a grid view option for selecting individual packages to remove?

from windows10debloater.

xsisbest avatar xsisbest commented on May 17, 2024

I don't know the slightest things about Powershell but if you look at though normal debloater and the sysprep version you can find all the names of the apps and then adjust each script to remove the apps or add the apps to the whitelist that you need or don't need. Just a little bit of studying the files and looking for that whitelist will help you understand which apps and names you need to add a remove for your preference. Here is a list of most the apps as found in the Windows10Debloater script. Just add these to your whitelist sections. (or remove)

"Microsoft.BingNews"
"Microsoft.DesktopAppInstaller"
"Microsoft.GetHelp"
"Microsoft.Getstarted"
"Microsoft.Messaging"
"Microsoft.Microsoft3DViewer"
"Microsoft.MicrosoftOfficeHub"
"Microsoft.MicrosoftSolitaireCollection"
"Microsoft.NetworkSpeedTest"
"Microsoft.Office.OneNote"
"Microsoft.Office.Sway"
"Microsoft.OneConnect"
"Microsoft.People"
"Microsoft.Print3D"
"Microsoft.RemoteDesktop"
"Microsoft.SkypeApp"
"Microsoft.StorePurchaseApp"
"Microsoft.WindowsAlarms"
"Microsoft.WindowsCamera"
"microsoft.windowscommunicationsapps"
"Microsoft.WindowsFeedbackHub"
"Microsoft.WindowsMaps"
"Microsoft.WindowsSoundRecorder"
"Microsoft.Xbox.TCUI"
"Microsoft.XboxApp"
"Microsoft.XboxGameOverlay"
"Microsoft.XboxIdentityProvider"
"Microsoft.XboxSpeechToTextOverlay"
"Microsoft.ZuneMusic"
"Microsoft.ZuneVideo"

from windows10debloater.

Sycnex avatar Sycnex commented on May 17, 2024

@Skatterbrainz Not yet but that is a fantastic suggestion. I found a nice method of doing this. It will take me time since I need to find some time to sit down and work on it.

from windows10debloater.

suchislife801 avatar suchislife801 commented on May 17, 2024

Greetings and thank you for the amazing script.

If you haven't yet considered, I would like to propose a C# GUI to call smaller, targeted scripts that comprise the whole. These could be options to choose from in the UI making it much more intuitive(if this is of interest).

Another idea would be a script generator comprised of these same options - if all checked - while in the other hand, the user can customize by checking only the options they would like available in the script. This version could be implemented in JS for all platforms.

from windows10debloater.

Sycnex avatar Sycnex commented on May 17, 2024

from windows10debloater.

Sycnex avatar Sycnex commented on May 17, 2024

Here is the GUI I am currently working on. I am hoping to have some free time this weekend to continue work on it:

https://github.com/Sycnex/Windows10Debloater/blob/Testing/Develop/Windows10DebloaterGUI

from windows10debloater.

marcthestrong avatar marcthestrong commented on May 17, 2024

If its ok, I can fork this. Im pretty comfortable with building in VB

from windows10debloater.

Sycnex avatar Sycnex commented on May 17, 2024

from windows10debloater.

Sycnex avatar Sycnex commented on May 17, 2024

Hi all, I am happy to report that there is now a GUI Application available! It is called Windows10DebloaterGUI.ps1. Please feel free to test and use it and let me know any results. It works great on my end with testing.

from windows10debloater.

Sycnex avatar Sycnex commented on May 17, 2024

Also, can I close this issue?

@Skatterbrainz

from windows10debloater.

xsisbest avatar xsisbest commented on May 17, 2024

Fantastic! Can't wait to give it a go! As long as closing the thread doesn't delete it :D

from windows10debloater.

Sycnex avatar Sycnex commented on May 17, 2024

@xsisbest Let me know what you like and dislike about it :) And closing it doesn't delete it, don't worry haha. We can always come back to it and reopen it.

from windows10debloater.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.