https://www.grc.com/never10.htm
That is what I used to prevent the upgrade to something I don't want.
It prevents the upgrade but can be switched off if you decide to allow it later.
It's for Windows 7 and Windows 8.1 I am running 7 here and it prevented the update.