You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After running these scripts, I have experienced broken Windows update and broken system file checker (sfc /scannow fails to repair). I expended much effort trying to repair the systems which were affected, but ended up having to do a fresh install of Windows.
I finally discovered the cause was the "remove-onedrive.ps1" script was deleting files in the WinSxS folder.
https://superuser.com/questions/1621421/can-i-safely-delete-all-inside-the-c-windows-winsxs-temp-folder-only Don't manually replace winsxs files (or even touching winsxs). The supported mechanism is technet.microsoft.com/en-us/library/Dn251565.aspx Definitely do not mess with winsxs. Some of the versions may be removable by running dism /online /cleanup-image /startcomponentcleanup. Anything that remains after that should be left alone
After running these scripts, I have experienced broken Windows update and broken system file checker (sfc /scannow fails to repair). I expended much effort trying to repair the systems which were affected, but ended up having to do a fresh install of Windows.
I finally discovered the cause was the "remove-onedrive.ps1" script was deleting files in the WinSxS folder.
Please remove these lines:
Debloat-Windows-10/scripts/remove-onedrive.ps1
Lines 58 to 62 in 80da8e5
For reference, here are warnings from three different sources:
https://www.tenforums.com/general-support/155313-winsxs-folder-outdated-hardware.html
You should never ever manually delete anything in WinSxS or you risk breaking the system. The only safe way to clean up WinSxS is with the tools MS provide.
https://superuser.com/questions/1621421/can-i-safely-delete-all-inside-the-c-windows-winsxs-temp-folder-only
Don't manually replace winsxs files (or even touching winsxs). The supported mechanism is technet.microsoft.com/en-us/library/Dn251565.aspx Definitely do not mess with winsxs. Some of the versions may be removable by running dism /online /cleanup-image /startcomponentcleanup. Anything that remains after that should be left alone
https://www.ionos.com/digitalguide/server/configuration/winsxs-cleanup/
Most importantly, however, you should never manually delete files from the WinSxS folder. This can significantly affect your system's ability to function.
The text was updated successfully, but these errors were encountered: