Use the info below to do the same thing. The Disable AllowTelemetry and Stop and Disable dmwappushservice Service sections are Windows 10 only, all other sections work on Windows 7 and up.
Begin Batch file:
@ECHO OFF
PRINT Disable AllowTelemetry
REG ADD HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection /v AllowTelemetry /d 0 /t REG_DWORD /f
PRINT Stop and Disable Diagnostic Tracking Service
sc stop DiagTrack
sc config DiagTrack start= disabled
PRINT Stop and Disable dmwappushservice Service
sc stop dmwappushservice
sc config dmwappushservice start= disabled
PRINT Uninstall MS Patches
%SYSTEMROOT%\System32\Wusa.exe /uninstall /kb:2952664 /norestart /quiet
%SYSTEMROOT%\System32\Wusa.exe /uninstall /kb:2976978 /norestart /quiet
%SYSTEMROOT%\System32\Wusa.exe /uninstall /kb:2990214 /norestart /quiet
%SYSTEMROOT%\System32\Wusa.exe /uninstall /kb:3021917 /norestart /quiet
%SYSTEMROOT%\System32\Wusa.exe /uninstall /kb:3022345 /norestart /quiet
%SYSTEMROOT%\System32\Wusa.exe /uninstall /kb:3035583 /norestart /quiet
%SYSTEMROOT%\System32\Wusa.exe /uninstall /kb:3044374 /norestart /quiet
%SYSTEMROOT%\System32\Wusa.exe /uninstall /kb:3068708 /norestart /quiet
%SYSTEMROOT%\System32\Wusa.exe /uninstall /kb:3075249 /norestart /quiet
%SYSTEMROOT%\System32\Wusa.exe /uninstall /kb:3080149 /norestart /quiet
PRINT Disable CEIP Tasks
%SYSTEMROOT%\System32\schtasks.exe /Change /TN "\Microsoft\Windows\Customer Experience Improvement Program\Consolidator" /DISABLE
%SYSTEMROOT%\System32\schtasks.exe /Change /TN "\Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" /DISABLE
%SYSTEMROOT%\System32\schtasks.exe /Change /TN "\Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" /DISABLE
PRINT Blank out AutoLogger
echo "" > %ProgramData%\Microsoft\Diagnosis\ETLLogs\AutoLogger\AutoLogger-Diagtrack-Listener.etl
EXIT