- C:
- Users
- <utilisateur>
- AppData
- Roaming
- Microsoft
FolderRisk: Caution
Microsoft C:\Users\<utilisateur>\AppData\Roaming\Microsoft
The %APPDATA%\Microsoft folder: personal data of Windows and Microsoft that follows a roaming profile (Credentials, Crypto, Protect, certificates).
What it’s for
AppData\Roaming (variable %APPDATA%) holds the application data of a user that can follow them from one computer to another in a roaming profile. Its Microsoft subfolder carries the personal data of Windows and Microsoft products. The machine-wide counterpart is C:\ProgramData\Microsoft.
What it contains
Windows: recent items, the personal Start menu, the Startup folder, templates and network shortcuts. It has its own page.Credentials,Crypto,ProtectandSystemCertificates: the user’s credentials, keys and certificates.Protectholds the Data Protection API (DPAPI) master keys, in a subfolder named after the user’s SID.- Folders of Microsoft applications (Office, Teams, legacy Edge…) depending on what is installed.
Risks and best practices
- Deleting
ProtectorCryptomakes DPAPI-encrypted data unreadable, and deleting the whole folder loses saved passwords, personal certificates and settings. - With a roaming profile or folder redirection, this folder is copied to the server at each session, so its size lengthens sign-in.
- Large or disposable data belongs in
AppData\Local, which does not follow the profile. - These folders hold secrets: do not open their permissions to other accounts.
Useful commands
# DPAPI subfolder: it is named after the current user's SIDwhoami /userGet-ChildItem "$env:APPDATA\Microsoft\Protect" -Force
# Possible redirection of %APPDATA% (roaming profile or folder redirection)$env:APPDATA