r/PowerShell • • May 26 '24

Hello i deleted default powershell from system32 labeled 1.0 can i somehow restore it without reinstaling windows ?

0 Upvotes

22 comments sorted by

View all comments

48

u/BlackV May 26 '24

why are you touching ANYTHING in windows or windows\system32 (actually I'm surprised Amazed! it actually let you do that in the first place)

you want /r/techsupport or /r/windows

1

u/tryharder123456789 Aug 25 '24

Wow so need for a reddit power shell subreddit------------ OK everyone no matter what your question about power shell don't go to the r/PowerShell

you want r/techsupport or r/windows

1

u/BlackV Aug 25 '24

I mean its not a poweshell question, if they deleted mspaint, should they ask the ask the same question in /r/mspaint or cmd in /r/cmd?

in this case the solutions is not powershell cause they deleted powershell, so its restore from backup or reinstall windows

ignoring that this was 3 month ago mind you

1

u/tryharder123456789 Aug 25 '24

If they deleted a paint config file that a user is expected to edit then I would say yes its a ms paint question

OP was able to edit the file by clicking a button within powershell so yes it is a powershell question

1

u/BlackV Aug 25 '24

no if they deleted mspaint (the executable) or cmd (the executable) your container product is windows

powershell is (in theory) gone, there is not a powershell command they can run to restore that

From OP (Alskaeer163)

Thanks I'll just reinstall windows

and

ganlet20
First run: DISM /Online /Cleanup-Image /RestoreHealth
Then: sfc /scannow

OP (Alskaeer163)
It worked thanks a lot dude

none of which is powershell but is basic /r/techsupport or /r/windows and solved their problem