Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.73 KB

README.md

File metadata and controls

40 lines (27 loc) · 1.73 KB

ClearTeamsCache PowerShell Script

Description

ClearTeamsCache.ps1 is a PowerShell script designed to clear the Microsoft Teams cache and restart the application. The script aims to improve Microsoft Teams performance by removing specific cache folders. It also performs checks for administrative rights, disk space, and network connectivity, and logs these events.

This script can be run manually or scheduled to run automatically, depending on the organization's needs.

Usage

You can run the script with custom parameters or with default values. Here are some examples:

  • -logFolder: Optional parameter. Specifies the folder where logs will be saved. Default is C:\TSTFolder\Logs.
  • -Force: Optional switch. Forces the script to continue even if it encounters issues.

Using default values:

./ClearTeamsCache.ps1

This will run the script with the default log folder located at C:\TSTFolder\Logs.

Using custom values:

./ClearTeamsCache.ps1 -logFolder "C:\CustomLogs" -Force

This will run the script with a custom log folder and will force the script to proceed even if it encounters issues like low disk space or lack of network connectivity.

Contributing

We welcome contributions to this script. If you have suggestions for improvements or have identified issues, please feel free to submit a pull request.

FAQ / Troubleshooting

If you encounter any issues while using this script, please check the following:

  • Ensure you have administrative rights when running the script.
  • Confirm there is enough disk space available for the script to execute properly.
  • Check your network connectivity if the script depends on internet access.

Author

Concept and development by Claudio Gonçalves.