I have written different scripts before to install all the prereqs needed for Configuration Manager in different versions. There are great hydration kits out there which can be used to install a Configuration Manager 2012 environment, but if you only want to install all pre-reqs needed by System Center 2012 Configuration Manager SP1  on Windows Server 2012 then you can use this Powershell script.

Note that you need to supply a path to the binaries for .NET Framework 3.5 which is located in the Server 2012 installation media under \sources\sxs\

Change the path in red below to reflect your path to the binaries for .NET Framework 3.5.

install-windowsfeature web-server
install-windowsfeature as-web-support
install-windowsfeature application-server
install-windowsfeature web-wmi
install-windowsfeature WDS
install-Windowsfeature RDC
install-Windowsfeature BITS
install-windowsfeature web-net-ext -source d:\sources\sxs\
install-windowsfeature NET-HTTP-Activation
install-windowsfeature NET-NON-HTTP-Activ
install-windowsfeature web-asp
Install-WindowsFeature -Name UpdateServices, UpdateServices-Ui
& 'C:\Program Files\Update Services\Tools\WsusUtil.exe' postinstall contentdir=C:\WSUS
New-NetFirewallRule -DisplayName "SQL Ports" -Description "SQL ports used by ConfigMgr" -LocalPort 1433,4022 -Protocol TCP -Profile any -Enabled True
New-NetFirewallRule -DisplayName "SQL Ports" -Description "SQL ports used by ConfigMgr" -LocalPort 4022 -Protocol TCP -Profile any -Direction Outbound -Enabled True

install-windowsfeature web-server

install-windowsfeature as-web-support

install-windowsfeature application-server

install-windowsfeature web-wmi

install-windowsfeature WDS

install-Windowsfeature RDC

install-Windowsfeature BITS

install-windowsfeature web-net-ext -source d:\sources\sxs\

install-windowsfeature NET-HTTP-Activation

install-windowsfeature NET-NON-HTTP-Activ

install-windowsfeature web-asp

Install-WindowsFeature -Name UpdateServices, UpdateServices-Ui

& 'C:\Program Files\Update Services\Tools\WsusUtil.exe' postinstall contentdir=C:\WSUS

New-NetFirewallRule -DisplayName "SQL Ports" -Description "SQL ports used by ConfigMgr" -LocalPort 1433,4022 -Protocol TCP -Profile any -Enabled True

New-NetFirewallRule -DisplayName "SQL Ports" -Description "SQL ports used by ConfigMgr" -LocalPort 4022 -Protocol TCP -Profile any -Direction Outbound -Enabled True