Like many of you, I work in a company environment, with Windows update cycles on the Windows 10 OS being the bane of my sysadmin life and my "power" users lives.

Firstly, we have configured windows updates to be as intrusive as possible when it comes to notifying the users, but for some of our most senior staff, who are away from there desks a lot, they miss the notifications from the system tray, and other warnings, to be greeted with a message saying:

"Your computer will reboot at 12:00pm" at about 11:55am, much to their annoyance.

So, to mitigate the issue as much as possible (BTW, we don't want to give them control over when to install patches, as this is a massive security issue) we will be emailing the user of each terminal with an email to say that there machine is due for a reboot, via a nifty little PS script [here](https://gallery.technet.microsoft.com/scriptcenter/Get-PendingReboot-Query-bdb79542) to find out if a machine is requesting a reboot pending.

now, this is working great, with some output similar to this:

> 
> Hi Fred,
> 
> 
> Your Computer W10-25 has been marked for reboot due to pending Windows Updates, please ensure you have saved your work before the end of the day just in case!
> 
> 
> Regards
> 
> 
> IT Dept.
> 
> 
> 

Now, in the Updates section of the ms-settings, it will tell you when its *supposed* to reboot:

[![shown here](https://i.stack.imgur.com/5n9GJ.png)](https://i.stack.imgur.com/5n9GJ.png)

Now there is usually a set time that is displayed here, and I would like to send that in the email to the users to be a bit more specific.

**So the question:**
Can someone please help me retrieve this information from the registry or where-ever it is held?