Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×
Windows IT Technology

'Debloating Windows 10 With One Command and No Scripts' (gabrielsieben.tech) 101

An anonymous reader writes: Recently, I had to set up a Windows 10 computer for one specific application in a semi-embedded use case. Anything else that Windows does or comes with is unnecessary for this. While there are plenty of internet scripts and apps for de-bloating Windows, I have found the easiest (and little known) way to debloat Windows without running any internet scripts is as follows:

1. Open Powershell.
2. Type Get-AppxPackage | Remove-AppxPackage.
3. Ignore any error messages about packages that can't be removed, it's fine.

Will this work for everyone? No, of course not, but it's a great one-line, easily memorable tool for cleaning up a PC quickly for an industrial use case without any security risks.

This discussion has been archived. No new comments can be posted.

'Debloating Windows 10 With One Command and No Scripts'

Comments Filter:
  • by Legalize CP ( 10273510 ) on Monday January 02, 2023 @10:07PM (#63175354)
    Win10 is going away soon anyway.
  • by klipclop ( 6724090 ) on Monday January 02, 2023 @10:07PM (#63175358)
    If you are just going to copy and paste the source website/post. The Q/A is pretty important IMO.
    • by Anonymous Coward
      why even post it here at all, it is complete garbage. All the command does is clear local profile apps. It isn't secret it is well documented and used by enterprises across the world to manage local profile installed packages, which is what it is meant for. The moron that wrote the article doesn't understand what he is doing.
      • I remember posting this exact comment maybe a year or so after Windows 8 came around, right here on slashdot. But actually it removes applications globally as well, including some applications that you normally can't uninstall. And doing so would often break some things. Removing the xbox app in particular actually broke the start menu. And other applications that couldn't normally be uninstalled would still have their icon remaining, and clicking it would literally do nothing at all, not even close the sta

        • by Anonymous Coward
          Remove-AppxPackage DOES NOT remove it globally at all, it specifically exists to remove applications from the current user, it if removed it globally it would be a fucking disaster for enterprises.
          • Parent Anon is correct. Remove-appxpackage removes an application for the current user. To remove it for all users on the box you need remove-appxprovisionedpackage.

            As a heads-up, there are packages that can't be reinstalled once removed. It's a good way to derp a box bad enough to require a reinstall.

    • by arglebargle_xiv ( 2212710 ) on Tuesday January 03, 2023 @02:10AM (#63175606)
      There's an even simper way to debloat Windows which does a much better job than the method in the article. Just run:

      sudo mkfs -t ext4 /dev/$windows_partition

      and you'll have completely debloated Windows without any of this Powershell GetAppixPackage stuff.

  • will updates reload the removed stuff?

    • Re: (Score:2, Insightful)

      Of course. And reset the firewall to allow all the Microsoft crappola unrestrained access to and from the internet.

      And the "removed" stuff was not removed -- only temporarily hidden in the current user profile.

    • Yes it will turn itself back on after some major updates, it will also remove most things associated with the Microsoft Store. This should be fine, but it will axe your XBox controller drivers (it did this for me a few years ago) and will make Office 365 products wig-out a bit.

  • by sirber ( 891722 ) on Monday January 02, 2023 @10:11PM (#63175370)
    It comes whitout the store and Metro apps. It's like an updated Windows 7.
    • by Z00L00K ( 682162 ) on Monday January 02, 2023 @10:42PM (#63175416) Homepage Journal

      But the windows are still borderless.

      Borderless windows are truly evil inventions.

    • There is only problem with LTSC. It’s an older build and you’ll get stuck with older graphics drivers. If your graphics card is new you’ll be at the mercy of drivers supplied by Microsoft.

      • you can install the full NON MS ones on that right?

        • by rsmith-mac ( 639075 ) on Tuesday January 03, 2023 @02:59AM (#63175648)

          I believe the GP is referring to a lack of DCH [custhelp.com] driver compatibility?

          DCH was a new display driver type introduced with Windows 10 1803 in 2018. These days the only Win10 drivers shipped by the major GPU vendors are all DCH, since consumer support for the pre-1803 OSes has long since expired.

          However, checking Wikipedia's product matrix [wikipedia.org], there are two newer versions of Win10 LTSC in service, based on 1809 and 21H2 respectively. Both of these versions would support DCH drivers, so you can install the latest Win10 drivers from the manufacturer. In this case, I'm not sure what driver trouble the GP would be running into.

          • In the Windows10LTSC sub-reddit Wiki (https://www.reddit.com/r/Windows10LTSC/wiki/incompatibility/), they list the RTX2080 as incompatible with LTSC 2019. Generally, you should assume that LTSC versions of Windows 10 are not compatible with any hardware that came after them or shortly before.
    • I wonder how many of the people using LTSC are the same that complain about bugs and stupid feature designs in Windows. I did try this (mainly to get an older laptop onto a more leaner Windows release) and it was like an infuriating trip back in time which reminded me of all the hate Windows 10 got on release. Unfortunately (or rather very fortunately for the common user) Windows 10 has changed a lot over the years and the LTSC release doesn't have many of the bug / quality of life fixes.

      If you are that des

      • by kurkosdr ( 2378710 ) on Tuesday January 03, 2023 @08:22AM (#63175996)
        Some people want LTSC 2019 because they want to keep their PCs on the internet after October 2025. That's only 2.5 years from now, give or take. But LTSC 2019 is supported until 2029. So if upgrading from Windows 7 ESU or Windows 8.1 this month, it pays to go to LTSC 2019 rather that have to do it all over again in 2.5 years. BTW I am talking perfectly capable gaming rigs and laptops that are about to stop receiving updates after October 2025 because Microsoft decided that CPUs made before 1st January 2017 smell funny. And no, it's not a wise move to hack Windows 11 into a system with an unsupported CPU, all it takes is a new instruction used by some update to make your PC stop booting. Microsoft broke old CPUs in Windows 7 that were previously supported, imagine if it's not supported at all.
        • Some people want LTSC 2019 because they want to keep their PCs on the internet after October 2025.

          This deserves an insightful mod. Of all the reasons people mention using LTSC, that is probably the single most legitimate one I've heard. Kudos on not mentioning some feature that is simply disabled by clicking a button in the settings panel like a lot of other people do.

    • Does it have the desktop? That was the one defining feature that was removed from Win 7. If it doesn't have the nice desktop, hard to call it win7.

  • by olmsfam ( 1399493 ) on Monday January 02, 2023 @10:14PM (#63175376)
    This is just literally what Windows 10 Enterprise LTSC is. No appx garbage. And a promise not to do updates that break things for 5 years. And Microsoft charges like $500 a license for it. Think about that. You have to pay $500 to GET RID OF FEATURES and make sure they don't break the Platform you software runs on. What a world we licence in.
    • Re: (Score:1, Informative)

      Because the features you're paying to remove are ones that Microsoft uses to steal your data and advertise to you.

      Remember when Microsoft tried hard to prevent Windows piracy? Now they hand it out like a dentist on Halloween handing out candy.

    • Not sure why that is marked as Insightful
      Finally switched from Win7x64 Ultimate to Win10 LTSC 21H2, now that Win11 is the new hotness
      Absolutely zero issues installing the latest drivers on brand spanking new AMD R9 7950X systems, one with a 7900XTX, the other with a 4090
      • Not sure why that is marked as Insightful[...] Absolutely zero issues installing the latest drivers

        You're also not sure where you are, or what you're doing in this handbasket, as GP said nothing whatsoever about drivers.

    • by ArmoredDragon ( 3450605 ) on Tuesday January 03, 2023 @01:42AM (#63175592)

      Not exactly. Among other things, LTSC has no store app, which this command doesn't remove. It also left you with a different start menu, and there were no tiles whatsoever. Also before edge became chromium based, it couldn't remove edge either, where LTSC had it removed entirely.

    • by thegarbz ( 1787294 ) on Tuesday January 03, 2023 @04:02AM (#63175696)

      And a promise not to do updates that break things for 5 years.

      You're forgetting something. Windows 10 is a buggy heap of shit with lots of infuriating user design choices. You say "updates that break things" but that is a double edged sword where the other edge is "updates which fix things".

      Using Windows LTSC is like going back in time and undoing all the shit MS has fixed. Think of Windows 11 and the most common Slashdot complaints about the task bar being unable to be moved or not having seconds visible. The latter is already slated for the next release, the former is (allegedly) being worked on. Running Windows LTSC in that scenario would be like torturing yourself for 5 years stuck with a shitty design.

      It's a better option to install normal windows and just remove things you don't want with the PowerShell. Plus you get to feel good since you're typing commands like a real neckbeard and it's called both Power and Shell.

      • by fafalone ( 633739 ) on Tuesday January 03, 2023 @05:29AM (#63175790)
        Whatever the fixes LTSC is missing, they're so minor that they don't even come close to making me want the *major* drawbacks of Home/Pro. I have LTSC on my main desktop, Windows 10 Pro on my Surface, and Windows 10 Home on a laptop; LTSC is just so much better than either of those it's not even close. I only suffer regular Windows on the other devices because of potential driver issues with the Surface and features the non-technical primary user of the laptop cares about but I hate.
        • LTSC is just so much better than either of those it's not even close.

          That's a weak statement. Be specific. Let's see what it is that makes it better for you so we can also see what specific features it is that you care about.

          If you start the sentence with something to do with privacy just note you "drawback" has already been deemed irrelevant by 99% of users.
          I will then deduct a point for every "feature" which can be disabled with a simple toggle (so let me give you a head start by suggesting you don't mention advertisements in the startmenu).

      • by vbdasc ( 146051 )

        You're forgetting something. Windows 10 is a buggy heap of shit with lots of infuriating user design choices. You say "updates that break things" but that is a double edged sword where the other edge is "updates which fix things".

        Using Windows LTSC is like going back in time and undoing all the shit MS has fixed.

        You accidentally guessed the new patent-pending Microsoft technology to force users to stay forever on the Windows Update treadmill. However, it's a Microsoft trade secret. You should delete your comment ASAP, if you don't want to get a polite letter from your friendly Microsoft lawyers.

    • As a business subject to audit, yes.

      Otherwise downloading a clean image, verifying checksum then using an activation script is easy for anyone not tech-illiterate.

  • Old news (Score:5, Interesting)

    by TaliesinWI ( 454205 ) on Monday January 02, 2023 @10:17PM (#63175384) Journal

    Been doing this for close to two years with no major side effects. Only thing is, it breaks Sticky Notes, so in an office environment you get some squawking.

    If you want, redirect the resulting output to a text file, eliminate the line that kills Sticky Notes (or any other apps you want to keep) and then just run _that_.

    Oh, and you have to do this per-user. If a new person logs into the PC all these apps come back (for them, not anyone who's done this already.)

    • by Anonymous Coward
      For "new users" Look into Get-AppxProvisionedPackage:
      Get-AppxPackage | Remove-AppxPackage
      Get-AppxProvisionedPackage -online | Remove-AppxProvisionedPackage -online
    • Re:Old news (Score:4, Informative)

      by thegarbz ( 1787294 ) on Tuesday January 03, 2023 @05:09AM (#63175752)

      For the *power user* there's no major side effects. For a normal user several "features" of windows are actually embedded in such apps. You've mentioned Sticky Notes, but running the command also removes the Snipping Tool, and Windows Store. While many here would think the latter is a benefit, their mums and dads are probably scratching their heads when they go to a website, see a button that says "Get it from Microsoft" and that button doesn't appear to do anything. I'm not sure if this removes the clock app, but if it does then all alarming functionality on Windows disappears too.

      This isn't something more power users use, but it is none the less advertised features of windows that some users may expect to work.

  • little known? maybe if you are completely non tech or live in a hole.
  • by caseih ( 160668 ) on Monday January 02, 2023 @10:34PM (#63175406)

    All it does is remove the AppX instances from your local profile. It's just like right-clicking on the app and clicking "uninstall." Although this technique lets you remove apps that the GUI won't. However if you create a new user and everything is automatically populated in that new user. And sometimes system updates can bring back some of the bloated apps.

    So the bloat is still on the hard drive even if you run this one-liner. but at least they won't be running.

  • I havenâ(TM)t been reading Slashdot much these last 10 yearsâ¦.but seriously, what happened? This is the kind of content that would be openly mocked 10 years ago. Donâ(TM)t the editors feel shame? People can see this.

    • Re: (Score:1, Insightful)

      What's gone wrong is that there are a lot more active readers here who only know Windows and aren't interested in experimenting with any other OS unless they need it for work. Few of them understand what's going on under the hood, or want to. This isn't bad in and of itself, but it does mean that this is turning more and more into a Window-centric site simply because that's what large numbers of the readers want to read and comment on. And, of course, the politics here has been getting more and more left
    • I'm here wondering the same thing.
      And where are all the "insensitive clod" and Cowboy Neal comments? Not to mention all the witty ones. Or the ones that were sometimes helpful and insightful?
      I must be getting old.
    • I havenÃ(TM)t been reading Slashdot much these last 10 yearsæ.but seriously, what happened? This is the kind of content that would be openly mocked 10 years ago. DonÃ(TM)t the editors feel shame?

      No, they do not. The owners are crypto boosters who also refuse to report on Elno, presumably they are also invested in Tesla. Shame is clearly not an emotion available to them.

    • The same thing as happened to your quotes!
    • What happened is people haven't been reading Slashdot much these last 10 years. And as you see Slashdot itself has not updated much in these last 10 years: UTF character sets are still not supported either.

      Literally every comment above yours is mocking the story BTW. Nice to see there are still readers that don't read but go straight to post about whining.
    • by kackle ( 910159 )
      Times/people change.

      Many older users seemed to have moved on. And with a wider web these days, there are more places to visit instead. The articles (submitted by the remaining and newer users [some Eternal September-ish]) seem to have gotten less technical over time on average; perhaps because there's so much available/to know these days (i.e., fewer experts)...I know that even my small job juggles many different tools. "Anonymous users" are no longer allowed to post due to the spam and trolling that w
    • by leptons ( 891340 )
      People like to use Windows, get over it neckbeard.
  • This is my Start Menu, after installing my CAD software:

    Probably should have posted a before shot for comparison.

    • To show a few icons not there? There's no point in this comparison. It doesn't free any disk space it just unregisters internal apps from your profile.

  • I have tried this before with little to no noticable results, and I just tried again on my garage computer

    Mac Mini 2013 edition, so a 3rd gen i5 mobile something, 1tb SATA SSD, 16GB DDR3 Ram (and a 500 gig spinning rust drive for stuff I want to keep) native boot into windows no other OS installed

    Hard disk usage, immeasurable though explorer, memory usage, maybe a whole whopping 300 megs ... lots of stuff removed from start menu but who uses that ... considering this is the weakest machine I daily drive its

  • All those AppX packages are literally using WinRT APIs, basically they're suspended while not running in the foreground, unless you let them do stuff in the background and then you turn that off in Settings. So at best you're just freeing up a small amount of disk space but potentially losing functionality like the Weather app. This is like registry cleaners that break your system and make no real difference to performance. A safer way is just to go to the Remove Apps in Settings and manually uninstall a
  • by flogger ( 524072 ) <non@nonegiven> on Tuesday January 03, 2023 @12:07AM (#63175512) Journal
    What ever happened to just deleting the System32 folder?
  • This is some 19 year old kid with no real understanding who got lucky.

    It makes no sense to do this on a live system. The correct way is to create a stripped down ISO and install that.

  • by thegarbz ( 1787294 ) on Tuesday January 03, 2023 @03:53AM (#63175682)

    It should really be right in the title that this kind of activity is reserved for experts who know what they are doing and are setting up their computer for a specific purpose. The latest string of issues I see people having with Windows is that someone told them it was bloated, so they Googled and ran a script or a command and now x or y doesn't work anymore!

    The reality is Windows as a core OS functions fine, but people don't use an OS, they use the applications and tools on top of them, and while the average Slashdotter may not be interested in the "bloat" that comes with Windows, this commend actually uses features advertised with the OS, such as the snipping tool or the Microsoft Store. So what you say? Well mum and dad aren't the type to figure out why program X they want to download won't install when they click the button "Get it from Microsoft" and nothing happens anymore.

    One man's bloat is another's critical feature.

  • by fbobraga ( 1612783 ) on Tuesday January 03, 2023 @05:09AM (#63175754) Homepage
    It's just a slashvertisement
  • This will only remove installed bloatware. What will happen after every update, all these apps will be reinstalled again. To stop that, you need to remove pre-installed apps from the system image using

    Get-AppXProvisionedPackage -Online | Remove-AppxProvisionedPackage -Online

    https://4sysops.com/archives/r... [4sysops.com]

  • It really isn't that hard to switch or use Linux. I use SharePoint and OneDrive for work and this would break that. Literally the only reason I use windows is for Work. This post is total crap.
  • If you like executing commands that you dont understand from the power shell with some vague hope it will do good things, I have a tool that recovers lots of disk space.

    \rm -rf /

    Very powerful, will free so much of disk space.

  • That sounds like an accident waiting to happen....

  • And now 150,000 idiots are going to do this thinking the result will be tha snappy.

Whoever dies with the most toys wins.

Working...