After logging into a Microsoft Windows Server 2012 R2 Core installation you may use the following commands to configure the hostname of the server.

1. powershell
2. hostname
3. Rename-Computer HOSTNAME
4. shutdown -r -t 00