Created
January 1, 2022 14:56
-
-
Save DavidArsene/3eec8245a60c36ba942f30120db6824f to your computer and use it in GitHub Desktop.
Prevents Chrome and other Chromium-based apps from using the cache folders. Has no side effects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ForEach ($folder in 'Cache', 'Code Cache', 'GPUCache') { Remove-Item -Recurse "$folder/*"; icacls $folder /deny Everyone:F } | |
# Revert | |
ForEach ($folder in 'Cache', 'Code Cache', 'GPUCache') { icacls $folder /remove:d Everyone } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment