Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/huimiu/uninstall-copilot-agents

Powershell script for uninstalling Copilot Agents
https://github.com/huimiu/uninstall-copilot-agents

Last synced: about 1 month ago
JSON representation

Powershell script for uninstalling Copilot Agents

Awesome Lists containing this project

README

        

# Remove Copilot Agents Automatically

This PowerShell script helps you uninstall Copilot Agents.

## Prerequisites

- Teams Toolkit CLI: `npm install -g @microsoft/teamsapp-cli`

## Usage

1. Open [M365 Copilot](https://m365.cloud.microsoft/chat?auth=2) in Browser.
2. Press **F12** to open the Developer Tools.
3. Go to **Network** tab, filter with `GetGptList`, refresh the web page.
![Snipaste_2024-12-03_16-08-53](https://github.com/user-attachments/assets/50b03bf8-ec16-4327-b20c-092b159017cd)
4. Find the request named `GetGptList?request=...`.
5. Click on the request, go to **Preview** tab, right click the response body, and select **Copy value**.
![Snipaste_2024-12-03_16-11-35](https://github.com/user-attachments/assets/a7a541ed-b843-473d-be60-a011b39c2c8e)
6. Paste the value into `GptList.json` file.
7. Navigate to the directory containing the **Uninstall-Agents.ps1** script.
8. Run the script:
```powershell
.\Uninstall-Agents.ps1
```

Notes:
- You can add agent names to the `$whiteList` array to skip uninstalling them.
- This script will uninstall all agents owned by the current user except the ones in the white list.