To prepare a Windows Server 2012 for a Lync 2013 installation, install the following features manually before you run the Lync setup:
.Net Framework 3.5
Windows Identity Foundation 3.5
Media Foundation
HTTP Activation
Use the Powershell to speed up the installation:
Install-WindowsFeature –name NET-Framework-Core –source D:\sources\sxs (the Windows 2012 Disk is mounted on D: )
Install-WindowsFeature –name Windows-Identity-Foundation,Server-Media-Foundation,NET-HTTP-Activation
If you have to prepare the AD schema, install also the AD DS Administration Tools.