MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/PowerShell/comments/1d19ode/hello_i_deleted_default_powershell_from_system32/ljsp2ea/?context=3
r/PowerShell • u/Alskaeer163 • May 26 '24
22 comments sorted by
View all comments
48
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)
windows
windows\system32
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/PowerShellyou 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 windowsignoring 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 questionOP 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 windowspowershell is (in theory) gone, there is not a powershell command they can run to restore thatFrom OP (Alskaeer163)Thanks I'll just reinstall windowsandganlet20First run: DISM /Online /Cleanup-Image /RestoreHealthThen: sfc /scannowOP (Alskaeer163)It worked thanks a lot dudenone of which is powershell but is basic /r/techsupport or /r/windows and solved their problem
1
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 windowsignoring 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 questionOP 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 windowspowershell is (in theory) gone, there is not a powershell command they can run to restore thatFrom OP (Alskaeer163)Thanks I'll just reinstall windowsandganlet20First run: DISM /Online /Cleanup-Image /RestoreHealthThen: sfc /scannowOP (Alskaeer163)It worked thanks a lot dudenone of which is powershell but is basic /r/techsupport or /r/windows and solved their problem
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 questionOP 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 windowspowershell is (in theory) gone, there is not a powershell command they can run to restore thatFrom OP (Alskaeer163)Thanks I'll just reinstall windowsandganlet20First run: DISM /Online /Cleanup-Image /RestoreHealthThen: sfc /scannowOP (Alskaeer163)It worked thanks a lot dudenone of which is powershell but is basic /r/techsupport or /r/windows and solved their problem
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 windowspowershell is (in theory) gone, there is not a powershell command they can run to restore thatFrom OP (Alskaeer163)Thanks I'll just reinstall windowsandganlet20First run: DISM /Online /Cleanup-Image /RestoreHealthThen: sfc /scannowOP (Alskaeer163)It worked thanks a lot dudenone of which is powershell but is basic /r/techsupport or /r/windows and solved their problem
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
ganlet20First run: DISM /Online /Cleanup-Image /RestoreHealthThen: sfc /scannowOP (Alskaeer163)It worked thanks a lot dude
ganlet20First run: DISM /Online /Cleanup-Image /RestoreHealthThen: sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth
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
48
u/BlackV May 26 '24
why are you touching ANYTHING in
windowsorwindows\system32(actually I'msurprisedAmazed! it actually let you do that in the first place)you want /r/techsupport or /r/windows