Click Start > Settings Update & security > Windows Updates > Advanced Options. Turn on or off Show a notification when your PC requires a restart to finish updating.
Open Group Policy Editor and go to Computer Configuration > Administrative Templates > Windows Components > Windows Update.
Double-click Turn off auto-restart notifications for update installations.
Click Enabled to disable notifications.
Click Not configured or Disabled to enable notifications.