Windows 2012 R2 : Forgot to Install the GUI?

In automating the deployment of some Windows 2012 R2 servers on a lab I neglected to select the ‘with GUI’ option during Windows Setup, use the script below to restore the GUI:

Powershell
Install-WindowsFeature Server-Gui-Mgmt-Infra, Server-Gui-Shell -Source:wim:D:\sources\install.wim:2
Restart-Computer