From 18ca26c3055657190247cfc6cfda42ba3a6fa28a Mon Sep 17 00:00:00 2001 From: zy26 Date: Wed, 2 Sep 2015 18:08:23 +0800 Subject: [PATCH] AllowTelemetry should be REG_DWORD --- run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run.py b/run.py index 790d0ef..c2e2651 100644 --- a/run.py +++ b/run.py @@ -367,11 +367,11 @@ def modifytelemetryregs(telemetryval): # Telemetry regkey paths telemetrydict = {'32bit Telemetry Key': [_winreg.HKEY_LOCAL_MACHINE, r'SOFTWARE\Policies\Microsoft\Windows\DataCollection', - "AllowTelemetry", _winreg.REG_SZ, telemetryval], + "AllowTelemetry", _winreg.REG_DWORD, telemetryval], '64bit Telemetry Key': [_winreg.HKEY_LOCAL_MACHINE, r'SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\DataCollection', - "AllowTelemetry", _winreg.REG_SZ, telemetryval]} + "AllowTelemetry", _winreg.REG_DWORD, telemetryval]} modifyregistry(regdict=telemetrydict, bit=32)