Forum Discussion
Settings File in Teams
Hello
Deletion of Teams Cache deletes also the language settings and resets it to english
Which files / folders store the settings in %appdata%\Microsoft\Teams.
Is there a script that moves this files and copies them back after deletion?
Thank you very much
JFM_12
Hi JFM_12,
you are right, sorry fot the confusion earlier.In the context of the Teams cache folder, the specific folders that typically store settings and data include:
IndexedDB: This folder stores indexed database data, which may include settings and cached data.
Local Storage: This folder stores web storage data, which may include application settings.
These are some of the common folders where Teams stores settings and cached data. However, Teams may use additional folders for different purposes. If you are looking to back up and restore only the settings-related folders while deleting others, you can use this script:
@echo off set "teamsCacheFolder=%appdata%\Microsoft\Teams" set "newLocation=%userprofile%\TeamsCacheBackup" rem Move the settings folders to a different location robocopy "%teamsCacheFolder%" "%newLocation%" /e /xd IndexedDB "Local Storage" /copyall rem Delete the Teams cache rmdir "%teamsCacheFolder%" /s /q rem Recreate the Teams cache folder mkdir "%teamsCacheFolder%" rem Copy the settings folders back to the original location robocopy "%newLocation%" "%teamsCacheFolder%" /e /xd IndexedDB "Local Storage" /copyall
Please click Mark as Best Response & Like if my post helped you to solve your issue.
This will help others to find the correct solution easily. It also closes the item.If the post was useful in other ways, please consider giving it Like.
Kindest regards,
Leon Pavesic
4 Replies
- LeonPavesicSilver Contributor
Hi JFM_12,
The following files and folders in %appdata%\Microsoft\Teams store the language settings:
- application_store_data folder
- blob_store folder
- databases folder
- GPUFeatureUsage folder
- IndexedDB folder
- Local Storage folder
- Settings folder
To move these files and folders to a different location and copy them back after deletion, you can use the following script:
# Move the settings files and folders to a different location robocopy "%appdata%\Microsoft\Teams" "%new_location%" /e /copyall # Delete the Teams cache rmdir "%appdata%\Microsoft\Teams" /s /q # Copy the settings files and folders back to the original location robocopy "%new_location%" "%appdata%\Microsoft\Teams" /e /copyallPlease click Mark as Best Response & Like if my post helped you to solve your issue.
This will help others to find the correct solution easily. It also closes the item.If the post was useful in other ways, please consider giving it Like.
Kindest regards,
Leon Pavesic
- JFM_12Iron ContributorHello
I have checked
These folders where not found
- application_store_data
- GPUFeatureStorage
- Settings
But your script moves all files and not only the ones you mentioned.
We want only keep the settings folders. All others should be deleted.
your setting "/copyall" does move everything.
Regards
JFM_12- LeonPavesicSilver Contributor
Hi JFM_12,
you are right, sorry fot the confusion earlier.In the context of the Teams cache folder, the specific folders that typically store settings and data include:
IndexedDB: This folder stores indexed database data, which may include settings and cached data.
Local Storage: This folder stores web storage data, which may include application settings.
These are some of the common folders where Teams stores settings and cached data. However, Teams may use additional folders for different purposes. If you are looking to back up and restore only the settings-related folders while deleting others, you can use this script:
@echo off set "teamsCacheFolder=%appdata%\Microsoft\Teams" set "newLocation=%userprofile%\TeamsCacheBackup" rem Move the settings folders to a different location robocopy "%teamsCacheFolder%" "%newLocation%" /e /xd IndexedDB "Local Storage" /copyall rem Delete the Teams cache rmdir "%teamsCacheFolder%" /s /q rem Recreate the Teams cache folder mkdir "%teamsCacheFolder%" rem Copy the settings folders back to the original location robocopy "%newLocation%" "%teamsCacheFolder%" /e /xd IndexedDB "Local Storage" /copyall
Please click Mark as Best Response & Like if my post helped you to solve your issue.
This will help others to find the correct solution easily. It also closes the item.If the post was useful in other ways, please consider giving it Like.
Kindest regards,
Leon Pavesic