I accidentally executed the following command in cmd
with administrative privilages in my c:\windows\system32
folder:
del *.* /f/q/s > nul
When I realized what was happening I quickly pressed Ctrl+C
to cancel the operation. In the meantime I got a bunch of Access is denied.
errors.
How do I know if I have or have not caused any damage to my Windows installation? Is there a way to check it? Can I just delete files from the system32
folder or they're protected?
In case if I have caused damage, can I repair my Windows installation without restoring it to a previous state?
I know that the del
command doesn't send the deleted file to Recycle Bin, hence I have no way of checking if anything has been deleted.
sfc /scannow
sfc /scannow
. Here is what I got in response when I ran that command: *Windows Resource Protection found corrupt files and successfully repaired them. For online repairs, details are included in the CBS log file located at windir\Logs\CBS\CBS.log. For example