{"id":29416299,"url":"https://github.com/exloud/visual-studio-telemetry-disable-tool","last_synced_at":"2026-05-16T22:34:13.414Z","repository":{"id":303145012,"uuid":"1010679152","full_name":"EXLOUD/Visual-Studio-Telemetry-Disable-Tool","owner":"EXLOUD","description":"Telemetry Disable Tool","archived":false,"fork":false,"pushed_at":"2025-07-05T23:08:22.000Z","size":1449,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-06T00:19:03.043Z","etag":null,"topics":["command-line","disable","free","powershell","telemetry","telemetry-collection","tweak","tweaks","visualstudio","visualstudiocode","windows","windows-10","windows-11"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EXLOUD.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-29T15:29:08.000Z","updated_at":"2025-07-05T23:08:25.000Z","dependencies_parsed_at":"2025-07-06T00:19:09.029Z","dependency_job_id":"d81d315e-5469-4898-bd5d-ad8902414439","html_url":"https://github.com/EXLOUD/Visual-Studio-Telemetry-Disable-Tool","commit_stats":null,"previous_names":["exloud/visual-studio-telemetry-disable-tool"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/EXLOUD/Visual-Studio-Telemetry-Disable-Tool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EXLOUD%2FVisual-Studio-Telemetry-Disable-Tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EXLOUD%2FVisual-Studio-Telemetry-Disable-Tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EXLOUD%2FVisual-Studio-Telemetry-Disable-Tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EXLOUD%2FVisual-Studio-Telemetry-Disable-Tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EXLOUD","download_url":"https://codeload.github.com/EXLOUD/Visual-Studio-Telemetry-Disable-Tool/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EXLOUD%2FVisual-Studio-Telemetry-Disable-Tool/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264878580,"owners_count":23677451,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command-line","disable","free","powershell","telemetry","telemetry-collection","tweak","tweaks","visualstudio","visualstudiocode","windows","windows-10","windows-11"],"created_at":"2025-07-11T19:02:44.242Z","updated_at":"2026-05-16T22:34:13.408Z","avatar_url":"https://github.com/EXLOUD.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n### 👇\n\n[![Download My Script](https://img.shields.io/badge/Download_This_Script-darkgreen?style=for-the-badge\u0026logo=powershell\u0026logoColor=white)](https://github.com/EXLOUD/Visual-Studio-Telemetry-Disable-Tool/archive/refs/heads/main.zip)\n\n---\n\n# Visual Studio Telemetry Disable Tool\n\n### 👀 Repository Views\n\n\u003cimg alt=\"count\" src=\"https://count.getloli.com/get/@:EXLOUD-VS-Telemetry-Disable?theme=rule34\" /\u003e\n\n**⭐ If this tool helped you, please consider giving it a star! ⭐**\n\n---\n\n[![PowerShell](https://img.shields.io/badge/PowerShell-5.1%20%7C%207.0%2B-blue)](https://github.com/PowerShell/PowerShell)\n[![License](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)\n![Windows](https://img.shields.io/badge/Windows-7%2F8%2F10%2F11-blue.svg)\n\n![Preview](./assets/preview.gif)\n\nA comprehensive PowerShell-based tool to disable telemetry and data collection across Microsoft development tools including Visual Studio, Visual Studio Code, .NET CLI, and NuGet.\n\n\u003c/div\u003e\n\n## 🚀 Features\n\n- **Comprehensive Coverage**: Disables telemetry for Visual Studio 2015-2026, VS Code, .NET CLI, and NuGet\n- **Backup \u0026 Restore**: Create registry backups before making changes and restore when needed\n- **Smart Detection**: Only modifies existing registry paths - doesn't create unnecessary entries\n- **PowerShell 7 Optimized**: Enhanced performance and modern PowerShell features\n- **Administrator Safety**: Requires admin privileges and validates permissions\n- **Cross-Version Support**: Works with PowerShell 5.1 and 7.0+\n- **Detailed Logging**: Color-coded output with comprehensive status reporting\n\n## 📋 What Gets Disabled\n\n### Visual Studio (2015-2026)\n- Customer Experience Improvement Program (CEIP)\n- Feedback dialogs and crash reporting\n- Automatic data collection\n- VS Standard Collector Service\n\n### Visual Studio Code\n- Telemetry reporting\n- Crash reporter\n- Automatic experiments\n- Extension auto-updates\n- Usage analytics\n\n### .NET CLI \u0026 NuGet\n- .NET CLI telemetry collection\n- NuGet package usage analytics\n- Performance data collection\n\n### System-Wide\n- Windows SQM (Software Quality Metrics) Client\n- Application Insights data collection\n- Telemetry directories cleanup\n\n## 🛠️ Prerequisites\n\n- Windows operating system\n- Administrator privileges\n- PowerShell 5.1 or PowerShell 7.0+\n\n## 📦 Installation\n\n1. **Download the tool:**\n   ```bash\n   git clone https://github.com/your-username/vs-telemetry-disable.git\n   cd vs-telemetry-disable\n   ```\n\n2. **Or download as ZIP:**\n   - Click \"Code\" → \"Download ZIP\"\n   - Extract to your desired location\n\n## 🚀 Usage\n\n### Quick Start\n\n1. **Right-click on `Launcher.bat`** and select **\"Run as administrator\"**\n2. Follow the interactive prompts\n3. The launcher will automatically detect your PowerShell version and run the appropriate script\n\n### Command Line Usage\n\n#### Basic Usage (Disable telemetry)\n```powershell\n# PowerShell 7\n.\\script\\off_telemetry_ps7.ps1\n\n# PowerShell 5\n.\\script\\off_telemetry_ps5.ps1\n```\n\n#### Create Backup First (Recommended)\n```powershell\n# Create backup before making changes\n.\\script\\off_telemetry_ps7.ps1 -CreateBackup\n\n# Create backup to specific location\n.\\script\\off_telemetry_ps7.ps1 -CreateBackup -BackupPath \"C:\\MyBackups\\telemetry_backup.reg\"\n```\n\n#### Restore from Backup\n```powershell\n# Restore from default backup location\n.\\script\\off_telemetry_ps7.ps1 -RestoreBackup -BackupPath \"path\\to\\your\\backup.reg\"\n```\n\n### Advanced Usage Examples\n\n```powershell\n# Create backup and continue with telemetry disable\n.\\script\\off_telemetry_ps7.ps1 -CreateBackup\n\n# Restore specific backup file\n.\\script\\off_telemetry_ps7.ps1 -RestoreBackup -BackupPath \"C:\\Backups\\telemetry_backup_20241201_143022.reg\"\n\n# Create backup to custom location without running disable\n.\\script\\off_telemetry_ps7.ps1 -CreateBackup -BackupPath \"D:\\MyBackups\\vs_telemetry.reg\"\n```\n\n## 📁 Project Structure\n\n```\nvs-telemetry-disable/\n├── Launcher.bat              # Interactive launcher script\n├── assets/\n│   └── preview.gif           # Tool demonstration\n├── script/\n│   ├── off_telemetry_ps7.ps1 # PowerShell 7.0+ version\n│   └── off_telemetry_ps5.ps1 # PowerShell 5.1 version\n├── README.md                 # This file\n├── LICENSE                   # MIT License\n└── .gitignore               # Git ignore rules\n```\n\n## 🔧 How It Works\n\n### Detection Process\n1. **PowerShell Version Detection**: Launcher automatically detects available PowerShell versions\n2. **Registry Path Validation**: Only existing registry paths are modified\n3. **Service Management**: Safely stops and disables telemetry services\n4. **Environment Variables**: Sets opt-out environment variables\n5. **File Cleanup**: Removes existing telemetry data directories\n\n### Registry Modifications\nThe tool modifies the following registry areas (only if they exist):\n- `HKLM:\\SOFTWARE\\Microsoft\\VSCommon\\*\\SQM`\n- `HKLM:\\SOFTWARE\\Policies\\Microsoft\\VisualStudio`\n- `HKCU:\\Software\\Microsoft\\VisualStudio`\n- `HKLM:\\SOFTWARE\\Microsoft\\SQMClient`\n\n### Environment Variables Set\n- `DOTNET_CLI_TELEMETRY_OPTOUT=1`\n- `NUGET_TELEMETRY_OPTOUT=true`\n- `POWERSHELL_TELEMETRY_OPTOUT=1`\n\n## ⚠️ Important Notes\n\n- **Administrator Rights Required**: The script must run with administrator privileges\n- **Backup Recommended**: Always create a backup before making changes\n- **Restart Required**: Some changes may require a system restart to take full effect\n- **Existing Paths Only**: The script only modifies existing registry entries\n- **VS Code Settings**: Creates/updates VS Code settings.json with privacy-focused configuration\n\n## 🔄 Backup \u0026 Restore\n\n### Creating Backups\n```powershell\n# Default backup location (Desktop with timestamp)\n.\\script\\off_telemetry_ps7.ps1 -CreateBackup\n\n# Custom backup location\n.\\script\\off_telemetry_ps7.ps1 -CreateBackup -BackupPath \"C:\\Backups\\my_backup.reg\"\n```\n\n### Restoring Backups\n```powershell\n# Restore from backup\n.\\script\\off_telemetry_ps7.ps1 -RestoreBackup -BackupPath \"path\\to\\backup.reg\"\n```\n\nBackup files are standard Windows Registry (.reg) files that can be imported manually if needed.\n\n## 🆘 Troubleshooting\n\n### Common Issues\n\n**\"This script must be run as Administrator\"**\n- Right-click the batch file and select \"Run as administrator\"\n- Or run PowerShell as administrator and execute the script directly\n\n**\"PowerShell script not found\"**\n- Ensure the `script` folder contains the PowerShell files\n- Check that file paths are correct\n\n**\"No compatible PowerShell version found\"**\n- Install PowerShell 7 (recommended) or ensure Windows PowerShell 5.1 is available\n\n### Verification\n\nTo verify the changes worked:\n1. Check environment variables in a new command prompt\n2. Look for disabled services in Services.msc\n3. Check VS Code settings.json for updated privacy settings\n4. Review registry entries (if comfortable with registry editing)\n\n## 🤝 Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.\n\n### Development Setup\n1. Fork the repository\n2. Create a feature branch (`git checkout -b feature/amazing-feature`)\n3. Make your changes\n4. Test on both PowerShell 5.1 and 7.0+\n5. Commit your changes (`git commit -m 'Add amazing feature'`)\n6. Push to the branch (`git push origin feature/amazing-feature`)\n7. Open a Pull Request\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## ⚡ Author\n\n**EXLOUD**\n\n## 🙏 Acknowledgments\n\n- Microsoft for providing comprehensive documentation on registry settings\n- PowerShell community for best practices and patterns\n- Contributors and users who provide feedback and improvements\n\n## 📊 Compatibility\n\n\u003cdiv align=\"center\"\u003e\n\n| Component | Status | Notes |\n|-----------|--------|-------|\n| Visual Studio 2015 | ✅ Supported | If installed |\n| Visual Studio 2017 | ✅ Supported | If installed |\n| Visual Studio 2019 | ✅ Supported | If installed |\n| Visual Studio 2022 | ✅ Supported | If installed |\n| Visual Studio Code | ✅ Supported | If installed |\n| .NET CLI | ✅ Supported | Always processed |\n| NuGet | ✅ Supported | Always processed |\n| PowerShell 5.1 | ✅ Supported | Windows PowerShell |\n| PowerShell 7.0+ | ✅ Supported | Recommended |\n\n\u003c/div\u003e\n\n## 🔮 Roadmap\n\n- [ ] GUI interface for easier usage\n- [ ] Support for additional Microsoft development tools\n- [ ] Scheduled telemetry cleanup\n- [ ] Configuration profiles for different scenarios\n- [ ] Integration with package managers\n\n---\n\n\n**⭐ If this tool helped you, please consider giving it a star!**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexloud%2Fvisual-studio-telemetry-disable-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexloud%2Fvisual-studio-telemetry-disable-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexloud%2Fvisual-studio-telemetry-disable-tool/lists"}