You want to configure how updates are applied using the Automatic Updates feature.
To configure Automatic Updates locally on a system, do the following:
Open the System applet in the Control Panel.
Select the Automatic Updates tab.
Check the box beside Keep my computer up to date to enable Automatic Updates.
Once you have done that, the radio buttons under Settings will become active. Select how you want to be notified about new updates and whether you want to automatically install them.
Click OK when you are done.
To configure Automatic Updates using Group Policy, do the following:
Open the Group Policy Management Console.
In the left pane, navigate to the group policy object (GPO) you want to modify.
Right-click the target GPO and select Edit.
In the left pane of the Group Policy Object Editor, expand Computer Configuration → Administrative Templates → Windows Update.
In the right pane, double-click the setting you want to configure.
The following commands enable Automatic Updates to automatically download new updates and notify when installation is ready to proceed:
> reg add HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU /t REG_DWORD /v NoAutoUpdate /d 0 > reg add HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU /t REG_DWORD /v AUOptions /d 3 > net stop wuauserv > net start wuauserv
You must restart the Automatic Updates service before the changes take effect. ...