How to prevent hidden windows 10 upgrade? [duplicate]

You can edit some values in the registry, use Group Policies or Compueter Configuration as described here: https://support.microsoft.com/en-us/kb/3080351

The registry way:

Subkey: HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate DWORD
value: DisableOSUpgrade = 1