• Press the Windows + R button on your keyboard and type GPEdit.msc.
    or
    Open Start and type gpedit.msc and hit enter
  • Unfold Administrative Templates under Computer Configuration.

  • Unfold Windows Components.
  • Click on the Windows Update folder.

  • Double-click on No Auto-Restart with logged on users for scheduled automatic update installations.
  • Check the Enabled box.
  • Click on OK
  • Close Group Policy Editor