gpedit.msc
Computer Configuration -> Administrative Templates -> Windows Components -> Windows Update
Enable “No auto-restart with automatic installations of scheduled updates”