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

29

u/jrodsf May 26 '24

Try:

sfc /scannow

In an elevated command prompt.

28

u/ganlet20 May 27 '24

First run:

DISM /Online /Cleanup-Image /RestoreHealth

Then

sfc /scannow

1

u/Alskaeer163 May 28 '24

It worked thanks a lot dude