Go to the following Registry key:
HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindowsDataCollection
Create a new a 32-bit DWORD value named AllowTelemetry and set it to 0.
Get-Service DiagTrack | Set-Service -StartupType Disabled
Get-Service dmwappushservice | Set-Service -StartupType Disabled