Hi, @Javier Meca
Thank you for posting in Microsoft Q&A forum.
To receive a warning before Windows updates and reboots, you can configure the "Turn off auto-restart notifications for update installations" policy through Group Policy or the "Update/SetAutoRestartNotificationDisable" policy through MDM.
Additionally, you can configure warning reminders and notifications for scheduled restarts through Group Policy or MDM.
It is important to note that if a restart is still pending after the deadline passes, the user will be forced to restart to keep their device in compliance.
References:
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".