1.Open the Settings app by pressing the Windows key + I.
2.Select “Update & Security.”
3.Select “Windows Update” from the sidebar menu.
4.Under the “Restart Options” section, use the drop-down menu to select when you would like your device to automatically restart and install updates.
5.Under the “Advanced Options” section, you can configure specific days of the week or times when updates should be installed and restarts should occur.
6.Once you have selected your desired settings, click “Apply” to save your changes.