I have a Server 2012 R2 Standard box (64-bit, 16 GB of RAM, all urgent & important updates applied) that is missing roles and features in both Server Manager and PowerShell. Server is a DC (the only one) and running Exchange 2013 (with CU11) with < 20 mailboxes.
I had a problem where Server Manager would crash every time I tried to launch the Add Roles or Remove Roles wizards in Server Manager. I fixed the crashing issue by following Frank McCourry’s advice at https://www.experts-exchange.com/questions/28394616/Server-Manager-crashes-during-Add-Roles-and-Features-wizard.html
and deleting the registry keys under HKLM\SOFTWARE\Microsoft\Se
Now, I can get into the Add or the Remove Roles Wizards but some of the roles are missing. PowerShell command Get-WindowsFeature has an incomplete list of roles and features (see attachment). For example, AD DS and Hyper-V roles are installed and working on the server but aren’t listed as either installed or available.
I can restore a backup of the registry keys from before my registry edit and get back to the Server Manager crashing state but can’t seem to get everything working fully again. I also tried mounting an older backup of the HKLM hive and restoring the same registry keys from before the problem began but it didn't help. Haven't found anything helpful in the event logs of the server either.
Any ideas experts?