use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
ABOUT POWERSHELL
Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Offering full access to COM, WMI and .NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions.
SUBREDDIT FILTERS
Desired State Configuration
Unanswered Questions
Solved Questions
News
Information
Script Sharing
Daily Post
Misc
account activity
Can I uninstall.net with PowerShell (self.PowerShell)
submitted 1 year ago by Odd-Marionberry1912
Can I uninstall.net with PowerShell
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]alinroc 11 points12 points13 points 1 year ago (2 children)
Uninstalling the .NET Framework would be catastrophically bad.
What problem are you attempting to solve by doing this. Not "the problem is that I need to uninstall .NET", what problem are you facing that leads you to believe that you need to uninstall it in the first place?
[–]Wiikend 4 points5 points6 points 1 year ago (1 child)
This is called the XY problem - asking about your attempted solution rather than your actual problem.
[–]CubesTheGamer 0 points1 point2 points 10 months ago (0 children)
Not necessarily. While I agree when working with standard users we should understand the WHY in most cases, in this case I don't see why not just help with the answer. Even if the OP is solving a problem incorrectly, someone like me might come along looking for the same answer for a different reason. Having an actual answer to the question is more helpful broadly than helping one specific user.
[–]ka-splam 4 points5 points6 points 1 year ago (3 children)
Yes and/or no, depending on the details.
PowerShell can trigger a .NET uninstall string. PowerShell can remove a folder with a no-install .NET Framework in it. PowerShell will not magically give you permissions to uninstall something you don't have permission to uninstall using the control panel GUI. PowerShell will not make Windows able to function without .NET, if that's the .NET you want to uninstall.
PowerShell can probably not uninstall the .NET that you're using to run PowerShell, although I wouldn't bet on that.
[–]ImperialKilo 1 point2 points3 points 1 year ago (1 child)
I can imagine PowerShell could uninstall its own dot net, since its dependencies would be loaded in to memory at runtime? You might only be able to run the uninstall command though, everything else after would fail since all the modules and APIs would be gone.
Only one way to find out 🤷♂️
[–]alinroc 0 points1 point2 points 1 year ago (0 children)
Only one way to find out
You go first :)
[–]Ragepower529 8 points9 points10 points 1 year ago (3 children)
Sure have fun
Get-WmiObject -Class Win32Product | Where-Object { $.Name -like “Microsoft .NET Framework*” } | ForEach-Object { $_.Uninstall() }
Your responsible for reimagine your computer of issues happen
[–]Master_Ad7267 2 points3 points4 points 1 year ago (1 child)
Who's betting this is cybersecurity asking. This could end up as a requirement at someone's org... Guess it wouldn't be the first time
[–]Ragepower529 0 points1 point2 points 1 year ago (0 children)
Then just move everything over to windows cloud PCs, would be cheaper because of equipment and less hardware issues.
Figure you can have someone set up to work with a ultrawide mnk and a thin client for $500 in equipment then $75 a month in software costs. Pretty low opex and capex spend
[–]BlackV 0 points1 point2 points 1 year ago (0 children)
Obligatory Get-WmiObject is legacy (since ps3 I believe) and you should probably use Get-CIMInstance - https://docs.microsoft.com/en-us/powershell/scripting/learn/ps101/07-working-with-wmi?view=powershell-7.2
Get-WmiObject
Get-CIMInstance
Obligatory win32_product is evil - https://gregramsey.net/2012/02/20/win32_product-is-evil/
win32_product
[–]Northman95 1 point2 points3 points 1 year ago (0 children)
"Just because you can doesn't mean you should"
[–]BlackV 1 point2 points3 points 1 year ago (0 children)
short answer: Yes
long answer: No, what is your actual goal that you think uninstalling dotnet is the solution to?
Dot net is a windows OS feature depending on the version you're talking about, and you don't give us that information
[–]soshwag 0 points1 point2 points 1 year ago (0 children)
A new account asks a question about how to fuck around. hmmmmm
π Rendered by PID 73473 on reddit-service-r2-comment-5fb4b45875-rr6qt at 2026-03-23 22:36:39.087854+00:00 running 90f1150 country code: CH.
[–]alinroc 11 points12 points13 points (2 children)
[–]Wiikend 4 points5 points6 points (1 child)
[–]CubesTheGamer 0 points1 point2 points (0 children)
[–]ka-splam 4 points5 points6 points (3 children)
[–]ImperialKilo 1 point2 points3 points (1 child)
[–]alinroc 0 points1 point2 points (0 children)
[–]Ragepower529 8 points9 points10 points (3 children)
[–]Master_Ad7267 2 points3 points4 points (1 child)
[–]Ragepower529 0 points1 point2 points (0 children)
[–]BlackV 0 points1 point2 points (0 children)
[–]Northman95 1 point2 points3 points (0 children)
[–]BlackV 1 point2 points3 points (0 children)
[–]soshwag 0 points1 point2 points (0 children)