Installing SharePoint 2013 on Windows Server 2012 Error

When you try to install SharePoint 2013 on Windows Server 2012 you need to install he prerequisites before SharePoint 2013.

You may get this error.

And when you open the log file, you will see the below error

Error when enabling ASP.NET v4.0.30319

Solution

Go to Server Manager >> add roles


use Role-based


Select Web Server (IIS)


Pass the Features and Web Server Role (IIS)


You may need to restart the server after above changes


Advertisements

How to Know When Your Server was Rebooted

In many cased you need to know when your server was rebooted or how many times your server was rebooted during one month for example.

To do this, we will use the event viewer 😉 two things

  • Event Id 6005:  you will see this event when the event log service was started, but this means that your server was rebooted suddenly.
  • Event Id 6006: this one is when the even log was stopped, but this means that your server was rebooted normally.