Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/huimiu/uninstall-copilot-agents
- Owner: huimiu
- Created: 2024-11-13T08:04:03.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-12-13T03:53:50.000Z (about 2 months ago)
- Last Synced: 2024-12-13T04:26:25.763Z (about 2 months ago)
- Language: PowerShell
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.