Windows Server 2012R2 Pending Reboot Status Won’t Clear

Recently I was setting up a new RDS deployment and when I went to install one of the roles (in this case the RD Gateway) it would not let me do so saying that the server was still pending reboot.  This isn’t uncommon with new deployments as I’m doing many things at once so I gave it the good ol’ reboot, but the issue still persisted.  Confuzzled I consulted Uncle Google for some advice and found the answer in a pesky reg key.  Once I deleted the “PendingFileRenameOperations” reg key from the location below and gave the box a good reboot everything worked as normal.

Path to reg key: HKLM\System\CurrentControlSet\Control\Session Manager

Google credit found here.