Disable Telemetry and Data Collection in Windows 10 Home and Windows 10 Pro

open regedit and go to

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DataCollection

If you do not have such a Registry key, then just create it.

There you need to create a new a 32-bit DWORD value named AllowTelemetry and set it to 0.

Disable a couple of Windows services

Go to Services and Applications -> Services in the left pane. In the services list, disable the following services:

Diagnostics Tracking Service
dmwappushsvc

Win-I -> Settings -> Privacy - Feedback and Diagnostics -> is grayed 

This should prevent Windows 10 from spying on you.