FolderRisk: Caution
Windows C:\Users\<utilisateur>\AppData\Local\Microsoft\Windows
Local data of the user's Windows components: INetCache, Explorer (thumbnails), WebCache, WER and the UsrClass.dat hive.
What it’s for
Windows components keep the user data that should not roam under %LOCALAPPDATA%\Microsoft\Windows. The Internet cache, for instance, lives here by default (FOLDERID_InternetCache). You come here mostly to reclaim space from the caches or to locate the UsrClass.dat hive.
What it contains
INetCache: cache of temporary Internet files.Explorer: File Explorer caches, such as thumbnails and icons.UsrClass.dat: the user’s Registry hive forHKCU\Software\Classes.WebCacheandWER: legacy web component database and error reports, depending on the features in use.
Risks and best practices
- Only the cache subfolders (
INetCache,Explorer) can be emptied safely, with applications closed.UsrClass.datstays loaded for as long as the session is open, so leave it alone. - The folder does not roam. Exclude it from profile backups unless you have a specific need.
Useful commands
# Subfolders present, with the size of eachGet-ChildItem -Force (Join-Path $env:LOCALAPPDATA 'Microsoft\Windows') -Directory | ForEach-Object { [pscustomobject]@{ Name = $_.Name; MB = [math]::Round((Get-ChildItem $_.FullName -Recurse -Force -File -EA SilentlyContinue | Measure-Object Length -Sum).Sum / 1MB, 1) } }Folder contents
Folders 5
- ExplorerThe user's File Explorer caches: thumbnails (thumbcache) and icons (iconcache), rebuilt…
- INetCacheINetCache: the user's cache of temporary Internet files (WinINet, Internet Explorer, apps…
- Temporary Internet FilesLegacy location of the WinINET cache (Internet Explorer and apps that use it), replaced…
- WebCacheFolder of the WebCacheV01.dat database: cache, cookie and history index for Internet…
- WERPer-user WER folder: incident reports (ReportArchive, ReportQueue) from applications run…