WSUS Role failed on Windows server 2012 with error “the operation cannot be completed because the server that you specified requires a restart”

I was trying to setup new Configuration Manager 2012 SP1 build on Windows server 2012 with SQL Server 2012 SP1 installed .Everything went fine except Windows server update services .It keeps saying error with restart needed.Here is what i got every time when i install WSUS after restart the server. Update: You can also refer…