|
|
hai 11 meses | |
|---|---|---|
| assets | hai 11 meses | |
| script | hai 11 meses | |
| .gitignore | hai 11 meses | |
| LICENSE | hai 11 meses | |
| Launcher.bat | hai 11 meses | |
| README.md | hai 11 meses | |
| SECURITY.md | hai 11 meses |
A comprehensive PowerShell-based tool to disable telemetry and data collection across Microsoft development tools including Visual Studio, Visual Studio Code, .NET CLI, and NuGet.
Download the tool:
git clone https://github.com/your-username/vs-telemetry-disable.git
cd vs-telemetry-disable
Or download as ZIP:
Launcher.bat and select "Run as administrator"# PowerShell 7
.\script\off_telemetry_ps7.ps1
# PowerShell 5
.\script\off_telemetry_ps5.ps1
# Create backup before making changes
.\script\off_telemetry_ps7.ps1 -CreateBackup
# Create backup to specific location
.\script\off_telemetry_ps7.ps1 -CreateBackup -BackupPath "C:\MyBackups\telemetry_backup.reg"
# Restore from default backup location
.\script\off_telemetry_ps7.ps1 -RestoreBackup -BackupPath "path\to\your\backup.reg"
# Create backup and continue with telemetry disable
.\script\off_telemetry_ps7.ps1 -CreateBackup
# Restore specific backup file
.\script\off_telemetry_ps7.ps1 -RestoreBackup -BackupPath "C:\Backups\telemetry_backup_20241201_143022.reg"
# Create backup to custom location without running disable
.\script\off_telemetry_ps7.ps1 -CreateBackup -BackupPath "D:\MyBackups\vs_telemetry.reg"
vs-telemetry-disable/
├── Launcher.bat # Interactive launcher script
├── assets/
│ └── preview.gif # Tool demonstration
├── script/
│ ├── off_telemetry_ps7.ps1 # PowerShell 7.0+ version
│ └── off_telemetry_ps5.ps1 # PowerShell 5.1 version
├── README.md # This file
├── LICENSE # MIT License
└── .gitignore # Git ignore rules
The tool modifies the following registry areas (only if they exist):
HKLM:\SOFTWARE\Microsoft\VSCommon\*\SQMHKLM:\SOFTWARE\Policies\Microsoft\VisualStudioHKCU:\Software\Microsoft\VisualStudioHKLM:\SOFTWARE\Microsoft\SQMClientDOTNET_CLI_TELEMETRY_OPTOUT=1NUGET_TELEMETRY_OPTOUT=truePOWERSHELL_TELEMETRY_OPTOUT=1# Default backup location (Desktop with timestamp)
.\script\off_telemetry_ps7.ps1 -CreateBackup
# Custom backup location
.\script\off_telemetry_ps7.ps1 -CreateBackup -BackupPath "C:\Backups\my_backup.reg"
# Restore from backup
.\script\off_telemetry_ps7.ps1 -RestoreBackup -BackupPath "path\to\backup.reg"
Backup files are standard Windows Registry (.reg) files that can be imported manually if needed.
"This script must be run as Administrator"
"PowerShell script not found"
script folder contains the PowerShell files"No compatible PowerShell version found"
To verify the changes worked:
Contributions 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.
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License - see the LICENSE file for details.
EXLOUD
| Component | Status | Notes |
|---|---|---|
| Visual Studio 2015 | ✅ Supported | If installed |
| Visual Studio 2017 | ✅ Supported | If installed |
| Visual Studio 2019 | ✅ Supported | If installed |
| Visual Studio 2022 | ✅ Supported | If installed |
| Visual Studio Code | ✅ Supported | If installed |
| .NET CLI | ✅ Supported | Always processed |
| NuGet | ✅ Supported | Always processed |
| PowerShell 5.1 | ✅ Supported | Windows PowerShell |
| PowerShell 7.0+ | ✅ Supported | Recommended |
⭐ If this tool helped you, please consider giving it a star!