Stop windows autoupdate from restarting your pc

I hate the fact that windows can automatically restart my pc after an update has been applied / or needs to. Use this simple to prevent this from happening. p.s. a lot of people simply disable auto updates to prevent this from happening but there are 2 concerns with this method, first this will mean you wont receive any windows updates and second sometimes (as is the case with me) this functionality has been disabled by our domain admin.

To disable the auto restart function;
Start / Run / gpedit.msc / Local Computer Policy / Computer Configuration / Administrative Templates / Windows Components / Windows Update / Re-prompt for restart with scheduled installations