SharePoint 2013/Server 2012 Install Issues

Today I installed SharePoint 2013 on a Server 2012 server and ran into a couple errors. The first was that the IIS configuration failed. This ended up being because .NET 3.5 was not able to be installed. This is an error that spans Server 2012 and Windows 8. The solution is to mount the install media and type the following in a cmd window

dism.exe /online /enable-feature /featurename:NetFX3 /Source:D:\sources\sxs /LimitAcces

Note: your source drive letter will depend on what drive the media is in or mounted too.

The next issue I ran into was that when I clicked on set up, after installing the prereqs I was told that the server needed to restart. The solution to that is…

1. Open Regedit. Click File Export (you ALWAYS want to backup your registry this way prior to making changes)

2. Find the key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager”.

3. Rename the “PendingFileRenameOperations” value to “PendingFileRenameOperations2”.

Once I renamed it, the install could continue.