đź“„ JScript (WSH)
Disable Windows Telemetry (JScript)
Lowers the diagnostic data Windows sends to Microsoft (requires admin). Requires an elevated (Administrator) prompt. Applies the tweak via WScript.Shell.RegWrite (JScript syntax).
SetDisableTelemetry.js
// ============================================================
// SetDisableTelemetry.js
//
// Disable Windows Telemetry.
// Lowers the diagnostic data Windows sends to Microsoft (requires admin). Requires an elevated (Administrator) prompt.
//
// Usage: cscript SetDisableTelemetry.js
// ============================================================
var objShell = WScript.CreateObject("WScript.Shell");
try {
objShell.RegWrite("HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows\\DataCollection\\AllowTelemetry", 0, "REG_DWORD");
WScript.Echo("Disable Windows Telemetry applied.");
} catch (e) {
WScript.Echo("Failed to apply tweak: " + e.description);
}