"Failed To Install Group Policy Management Console. The Error Was: The Parameter Is Incorrect" Error message During The Installation Of AD DS

When installing Active Directory Domain Services role on a server with Windows Server 2008 R2, you may encounter the following error message:

Failed To Install Group Policy Management Console. The Error Was: The Parameter Is Incorrect.

Workaround to this problem:

Click OK on the error message and then restart the server. When the server came up, following the steps below: