Forum Discussion

JFM_12's avatar
JFM_12
Iron Contributor
Sep 21, 2023
Solved

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 f...
  • LeonPavesic's avatar
    LeonPavesic
    Sep 21, 2023

    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:

    1. IndexedDB: This folder stores indexed database data, which may include settings and cached data.

    2. 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