Configuring Windows Server Core
Configuring Windows Server Core
Windows Server Core is the CLI only version of the Windows OS. This post is a run-through of configuring a new Windows Server 2016 Core host, detailed in the following steps;
# Installing Windows Server 2016 Core.
# (CLI) Changing a Windows Server Hostname.
# (CLI) Amending TCP/IP & DNS Settings.
# (CLI) Joining a Windows Server to a Domain.
Installing Windows Server 2016 Core
When installing Windows Server, we need to select the following option.
![Windows Server Core Install](https://peter-whyte.com/wp-content/uploads/2019/06/server_core_install-1024x868.png)
Once the above is done and the reboot happens, the following will appear.
![Server Core Enter Admin Password](https://peter-whyte.com/wp-content/uploads/2019/06/server_core_install_enter_admin_password.png)
Enter the Administrator password…
![Server Core Enter Admin Password](https://peter-whyte.com/wp-content/uploads/2019/06/server_core_login.png)
We’re now logged in and ready to go.
![PowerShell Get-Hostname](https://peter-whyte.com/wp-content/uploads/2019/06/get_hostname.png)
Changing a Windows Server Hostname
An easy task done with the Rename-Computer cmdlet accepted by PowerShell, followed by a reboot.
![PowerShell Rename-Computer](https://peter-whyte.com/wp-content/uploads/2019/06/powershell_rename_computer.png)
Amending TCP/IP & DNS Settings
First we need to look at the current recognised interfaces using the Get-NetIPConfiguration cmtlet.
![PowerShell Get-NetIPConfiguration](https://peter-whyte.com/wp-content/uploads/2019/06/powershell_get_netipconfiguration.png)
Then set a new private IP address using the New-NetIPAddress cmdlet.
![PowerShell New-NetIPAddress](https://peter-whyte.com/wp-content/uploads/2019/06/powershell_new_net_ip_address.png)
Lastly, set the DNS address using Set-DnsClientServerAddress.
![PowerShell Set-DNSClientServerAddress](https://peter-whyte.com/wp-content/uploads/2019/06/powershell_set_dnsclientserveraddress.png)
The private IPv4 network has been configured, now we should verify we have line-of-sight.
![Ping IP Test](https://peter-whyte.com/wp-content/uploads/2019/06/ping_ip_test.png)
![Ping Hostname Test](https://peter-whyte.com/wp-content/uploads/2019/06/ping_hostname_test.png)
Joining a Windows Server to a Domain
To join a Windows OS to the domain, we can use the Add-Computer cmtlet – You’ll immediately be prompted for authorisation from an account that can join computers to the domain.
![PowerShell Add-Computer](https://peter-whyte.com/wp-content/uploads/2019/06/powershell_add_computer.png)
Enter the Domain Name.
![PowerShell Add Computer Domain Name](https://peter-whyte.com/wp-content/uploads/2019/06/powershell_add_computer_domain_name.png)
Reboot once done.
![PowerShell Add-Computer Reboot](https://peter-whyte.com/wp-content/uploads/2019/06/powershell_add_computer_restart.png)
When the box is up, you’ll have the option to login with the Local Administrator account, or with another user.
![Server Core Login Other User](https://peter-whyte.com/wp-content/uploads/2019/06/server_core_login_other_user.png)
If selecting Other user, you’ll have an entry for the domain you’re signing into.
![Server Core Domain Login](https://peter-whyte.com/wp-content/uploads/2019/06/server_core_domain_login.png)
![Server Core Hostname and Login Info](https://peter-whyte.com/wp-content/uploads/2019/06/server_core_hostname_and_login_details.png)
0 Comments