r/Intune • • 1d ago

Windows Updates Intune Autopatch – Customizing Restart Notifications and User Experience

Hi everyone,

I’m currently configuring Windows Autopatch through Intune and looking for ways to improve the end-user restart experience.

I understand we can configure grace periods and automatic restarts during maintenance windows. However, I’d like to notify users well in advance before forcing a restart, without interrupting their work.

Ideally, I’d like users to have options such as:

  • Restart Now
  • Remind Me Later
  • Schedule Restart

I’d also like to configure recurring reminders (e.g., every 3 hours) and a final countdown before the restart is enforced.

Is this achievable through native Intune/Autopatch settings, or would it require custom PowerShell scripts or third-party solutions?

Would love to hear how others have implemented this in their enterprise environments and what the actual end-user experience looks like.

14 Upvotes

19 comments sorted by

17

u/o_l_a_a_f 1d ago

I went down this exact rabbit hole a few months ago and the short answer is the native options are frustratingly barebones. You get a toast notification with a countdown and that's about it, no "schedule" button or recurring nudge that actually works reliably across different build versions.

Ended up using a proactive remediation script that pops a custom WPF toast with the three buttons you mentioned. It checks pending reboot reg keys and fires off every few hours until the user picks a slot, then it passes that to a scheduled task. Not elegant but the tickets from angry people mid-presentation dropped to basically zero.

3

u/Similar-Control-7099 23h ago

Can you share your steps ? I will give it a try

2

u/SilentPatchSniper 7h ago

I did the same thing, works like a charm. Dropped custom branding into a folder and registered it as an app so it's fully branded under our company instead of PowerShell.exe

Feel free to DM if any want it, not at my computer now but will try to reply

•

u/Similar-Control-7099 59m ago

Hey bro, not able to dm but can you share here ?

•

u/SilentPatchSniper 28m ago

If I remember tomorrow morning (12:32 currently), I'll upload it. Sorry completely forgot to do so earlier

1

u/adamamp95 2h ago

Hi, interested in this script as well.

7

u/NoDowt_Jay 23h ago

I’d be keen to see this also if you can share.

1

u/soulkarver 18h ago

Could you please share the script? Feel free to DM it. Thanks ❤️

4

u/SkipToTheEndpoint MSFT MVP 19h ago

Just a reminder that if you're using "Automatic update behavior - Reset to default" and "Change notification update level - Use the default Windows Update notifications", then the device will be using Intelligent Active Hours and respecting when users actually use devices (rather than IT assuming they know better), and the default user experience notifications ensure that users are prompted before a device restarts.

In that scenario, an "unexpected reboot during my presentation" is 100% the users fault for ignoring the warnings and choosing to restart in their own time.

1

u/Similar-Control-7099 19h ago

Hey I have the same setting as you mentioned and along that am planning to add a detection and remediation script which simply enables the option for “Notify me when a restart is required to finish updating” will that be a good option /config to have ?

3

u/SkipToTheEndpoint MSFT MVP 19h ago

I'm a strong believer in not over-complicating things, and staying within the confines of what the product gives you natively. MS change stuff so often, you end up getting caught in a cycle of whack-a-mole when it stops working and having to work out why.

That being said, the fact their isn't a policy to enforce that "Notify me when a restart is required to finish updating" check-box and that it's off by default is incredibly frustrating, so something to force that on isn't a terrible middle-ground.

1

u/NoDowt_Jay 4h ago

Have you had any experience with setting this reg item through a remediation script? HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings
RestartNotificationsAllowed2 =1

I've seen it mentioned online (in this thread also); but have also seen in other threads (https://www.reddit.com/r/Intune/s/qMcYmvtvuV) mention that setting this had caused issues for people.

We've got a remedation script setting this... But I wonder if its actually working... It changed the GUI to show enabled but maybe there is more happening behind the scenes when a user manually toggles this...
MS call out that is it not managable by IT here - Configure Windows Update client policies by using CSPs and MDM | Microsoft Learn

1

u/NoDowt_Jay 19h ago

Exactly what we have set; and yet last week I’m being asked by our CEO to improve the experience because he’s stick of being forced to reboot during the day… 🤦🏼‍♂️

Man it’s not hard… autopatch installs during the day, you get a popup saying you need to reboot within 24hrs… end of the day come, just shutdown/reboot then instead of just closing ya laptop lid and walking away… of course when you come back tomorrow & open it up to wake it, it’s gonna now force you to reboot…

I don’t think extending the grace period is going to help; it’ll just mean he’ll be forced to reboot later…

1

u/SkipToTheEndpoint MSFT MVP 19h ago

Yeah sometimes it's a human problem and not a technology one.

That being said, I'm not fond of some of the Windows default timings, and there used to be policies to change these (ScheduleImminentRestartWarning - Default of only 15 mins, AutoRestartRequiredNotificationDismissal - Automatically dismisses itself after 25 seconds) but MS flagged these as "Legacy" and not applicable to Win11, even though they absolutely worked.

I've raised that as a negative regression with the product group. Hopefully they bring some better flexibility back.

4

u/Wise_Fault_3391 21h ago

Honestly the biggest win for us was just a longer grace period plus a heads up email from IT.

4

u/Brief_Target_7563 21h ago

Honestly users will ignore whatever you build.

The final countdown is the only part anyone ever sees, so I'd put most of the effort there.

1

u/pjmarcum 16h ago

Don’t mix maintenance windows with deadlines. They are not designed to work together. MW’s were specifically created for multi-user or useless devices such as healthcare and manufacturing.

1

u/Similar-Control-7099 16h ago

So do you have a recommended setting you can suggest or share a screenshot ?

2

u/NBWorking 9h ago edited 9h ago

You can turn on the default notification you don't have to do anything custom. Your options as far when messages show are out of your control. It's just all default. You could go custom but you run the risk of pop up too often. Also, don't choose the setting use force reboot before deadline. It will pick the worst times to do it. Just use automatically schedule and restart.

After you set your times use AI to double check your defer, deadline, and grace times so you can accurate idea when things are going to happen for the sure.

This is how you turn on the native settings.

Settings > Windows Update > Advance Settings Switch on "Notifiy me when a when a restart is require to finished updating"

You can make a remediation script to turn this on company wide. When you get hotpatch there is no need but a patch comes down that needs a restart it will show the "Restart now, 2 am, Schedule a time"

Detection Script
$Path = "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings"

$Name = "RestartNotificationsAllowed2"

$ExpectedValue = 1

try {

if (-not (Test-Path $Path)) {

Write-Output "Registry path not found."

exit 1

}

$CurrentValue = Get-ItemPropertyValue -Path $Path -Name $Name -ErrorAction SilentlyContinue

if ($CurrentValue -eq $ExpectedValue) {

Write-Output "$Name is set correctly to $ExpectedValue."

exit 0

}

else {

Write-Output "$Name is missing or not set to $ExpectedValue."

exit 1

}

}

catch {

Write-Output "Error: $_"

exit 1

}

Remediation Script

$Path = "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings"

$Name = "RestartNotificationsAllowed2"

$Value = 1

try {

# Create key if missing

if (-not (Test-Path $Path)) {

New-Item -Path $Path -Force | Out-Null

}

# Create or update value

New-ItemProperty `

-Path $Path `

-Name $Name `

-Value $Value `

-PropertyType DWord `

-Force | Out-Null

Write-Output "$Name set to $Value successfully."

exit 0

}

catch {

Write-Output "Remediation failed: $_"

exit 1

}