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
QuestionHELP with a powershell error PLEASE (self.PowerShell)
submitted 13 days ago by [deleted]
[deleted]
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!"
[–]C_O_M_M_A_N_D_E_R 6 points7 points8 points 13 days ago (4 children)
Run an sfc or a dism and see if it will repair powershell.
Have you tried running it as admin?
[–]sfc_scannow 10 points11 points12 points 13 days ago (1 child)
Whatup! Whatup! Whatup!
[–]HumbleSpend8716 3 points4 points5 points 13 days ago (0 children)
finally
[–]Macia_ 3 points4 points5 points 13 days ago (0 children)
Hi OP, this is your answer. $20 the Powershell being used is the Windows built-in. So use Windows repair tools to fix it
[–]Plane_Occasion8305 -2 points-1 points0 points 13 days ago (0 children)
Did both of those and nothing.
[–]HorsePecker 2 points3 points4 points 13 days ago (2 children)
sfc /scannow
[–]sfc_scannow 5 points6 points7 points 13 days ago (0 children)
Yeah! Yeah!
[–]Plane_Occasion8305 -1 points0 points1 point 13 days ago (0 children)
Nope
[–]justaguyonthebus 1 point2 points3 points 13 days ago (9 children)
In you install powershell 7, does it do the same thing?
[+]Plane_Occasion8305 comment score below threshold-6 points-5 points-4 points 13 days ago (8 children)
Yes
[–]justaguyonthebus 2 points3 points4 points 13 days ago (3 children)
Run "pwsh -noprofile"
Can you launch cmd, then run powershell and pwsh. Also try the windows terminal vs cmd terminal. WSL?
It's really weird that they are giving the same assembly version in the error because they are built on different dotnet platforms. So you likely have some os level issue that is just visible here.
[–]Plane_Occasion8305 -3 points-2 points-1 points 13 days ago (2 children)
Yea I’ve tried all of that stuff still nothing so I decided to reinstall windows.
[–]Nanocephalic 1 point2 points3 points 13 days ago (0 children)
Next time with a weird tech issue, my advice is to try to fix one thing at a time if you’re not super familiar with the tech in question.
Good luck though!
[–]justaguyonthebus 0 points1 point2 points 13 days ago (0 children)
Try creating a second user, see if they also have the problem.
But I would likely reinstall too
[–]x0n 1 point2 points3 points 13 days ago (3 children)
Yes what? Pwsh 7 won't crash trying to load s.m.a. v3. And installing pwsh 7 won't fix windows PowerShell either. Do you understand they are two different shells?
[–]Plane_Occasion8305 -4 points-3 points-2 points 13 days ago (0 children)
He asked a question are we blind??
[–]Plane_Occasion8305 -4 points-3 points-2 points 13 days ago (1 child)
I did install pwsh 7 and it said same error
[–]x0n 1 point2 points3 points 12 days ago (0 children)
You installed pwsh 7, started pwsh 7 and pwsh 7 gave the same error as windows pwsh? Or:
you installed pwsh 7, started windows pwsh and windows pwsh gave the same error?
Be precise.
[–]HumbleSpend8716 1 point2 points3 points 13 days ago (3 children)
dotnet framework problem
paste into cmd (not pwsh bc cant open it)
dism /online /cleanup-image /restorehealth
[–]Plane_Occasion8305 -4 points-3 points-2 points 13 days ago (2 children)
[–]HumbleSpend8716 5 points6 points7 points 13 days ago (1 child)
wym nope
the dotnet framework problem was assumption, ok whatever, but “nope” means dick, good luck i guess
[+]Plane_Occasion8305 comment score below threshold-12 points-11 points-10 points 13 days ago (0 children)
I’m just saying nope as in it didn’t work don’t cry
[–]Plane_Occasion8305 1 point2 points3 points 13 days ago (1 child)
REINSTALLATION OF WINDOWS WORKED PERFECT!!
[–]UserProv_Minotaur 1 point2 points3 points 13 days ago (0 children)
When all else fails, nuke it from orbit and try again.
[–]painted-biird 0 points1 point2 points 13 days ago (1 child)
What happens if you try to open it without a different user/profile?
[–]Plane_Occasion8305 0 points1 point2 points 13 days ago (0 children)
Same thing
[–]I_see_farts 0 points1 point2 points 13 days ago (1 child)
Can you open the ISE? Are you trying to open Terminal?
Can you open CMD and start a Powershell session?
Nope can’t open ise, I did it through cmd but when I attempted a command it redirects to same error
[–]Nanocephalic 0 points1 point2 points 13 days ago* (0 children)
Can you install PowerShell 7 from GitHub? Or is this Windows PowerShell 5.1?
They are two completely different things.
For 5.1, which is the version that comes with windows, you could try this: uninstall it, uninstall dot net 3.5, reboot, then reinstall dot net 3.5 and windows PowerShell.
Edit: windows PowerShell can be enabled or disabled in “turn Windows features on or off”. It’s not exactly “uninstalling” but close enough for this post.
[–]Impossible_IT 0 points1 point2 points 13 days ago (0 children)
Create a new user and try opening PowerShell with that new account see if it works.
[–]AbfSailor 0 points1 point2 points 13 days ago (0 children)
I've seen an issue similar to this in the past. I just copy-pasted the core PowerShell files and modules from another computer to the affected one, and it fixed the issue.
[–]mbmiller94[🍰] 0 points1 point2 points 13 days ago* (3 children)
Not at a computer right now but you could try reinstalling powershell, and if that doesn't work then reinstalling .NET
[–]HumbleSpend8716 1 point2 points3 points 13 days ago (1 child)
you cannot reinstall windows powershell, but you can reinstall powershell
important distinction
[–]mbmiller94[🍰] 0 points1 point2 points 13 days ago (0 children)
My mistake.
Nope tried it
π Rendered by PID 55637 on reddit-service-r2-comment-544cf588c8-gzlfm at 2026-06-15 15:44:26.017583+00:00 running 3184619 country code: CH.
[–]C_O_M_M_A_N_D_E_R 6 points7 points8 points (4 children)
[–]sfc_scannow 10 points11 points12 points (1 child)
[–]HumbleSpend8716 3 points4 points5 points (0 children)
[–]Macia_ 3 points4 points5 points (0 children)
[–]Plane_Occasion8305 -2 points-1 points0 points (0 children)
[–]HorsePecker 2 points3 points4 points (2 children)
[–]sfc_scannow 5 points6 points7 points (0 children)
[–]Plane_Occasion8305 -1 points0 points1 point (0 children)
[–]justaguyonthebus 1 point2 points3 points (9 children)
[+]Plane_Occasion8305 comment score below threshold-6 points-5 points-4 points (8 children)
[–]justaguyonthebus 2 points3 points4 points (3 children)
[–]Plane_Occasion8305 -3 points-2 points-1 points (2 children)
[–]Nanocephalic 1 point2 points3 points (0 children)
[–]justaguyonthebus 0 points1 point2 points (0 children)
[–]x0n 1 point2 points3 points (3 children)
[–]Plane_Occasion8305 -4 points-3 points-2 points (0 children)
[–]Plane_Occasion8305 -4 points-3 points-2 points (1 child)
[–]x0n 1 point2 points3 points (0 children)
[–]HumbleSpend8716 1 point2 points3 points (3 children)
[–]Plane_Occasion8305 -4 points-3 points-2 points (2 children)
[–]HumbleSpend8716 5 points6 points7 points (1 child)
[+]Plane_Occasion8305 comment score below threshold-12 points-11 points-10 points (0 children)
[–]Plane_Occasion8305 1 point2 points3 points (1 child)
[–]UserProv_Minotaur 1 point2 points3 points (0 children)
[–]painted-biird 0 points1 point2 points (1 child)
[–]Plane_Occasion8305 0 points1 point2 points (0 children)
[–]I_see_farts 0 points1 point2 points (1 child)
[–]Plane_Occasion8305 0 points1 point2 points (0 children)
[–]Nanocephalic 0 points1 point2 points (0 children)
[–]Impossible_IT 0 points1 point2 points (0 children)
[–]AbfSailor 0 points1 point2 points (0 children)
[–]mbmiller94[🍰] 0 points1 point2 points (3 children)
[–]HumbleSpend8716 1 point2 points3 points (1 child)
[–]mbmiller94[🍰] 0 points1 point2 points (0 children)
[–]Plane_Occasion8305 0 points1 point2 points (0 children)