Windows Server Core I

Advantages and disadvantages of using windows server core

Reason

The primary goal of this post is to illustrate the use core advantages.

Requirements

  • 2 Adapter.
  • Windows Server Core 2016.
  • Windows 10 (testing).

Setup

First, change the server name:

PS C:\Users\Administrator> Rename-Computer -NewName beeklabs
WARNING: The changes will take effect after you restart the computer WIN-FOQJI0KAEKI.

It’s necessary to have a fixed ip:

PS C:\Users\Administrator> ipconfig

Windows IP Configuration


Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . : lan
   Link-local IPv6 Address . . . . . : fe80::9929:4133:7a5b:b62d%5
   IPv4 Address. . . . . . . . . . . : 10.0.2.15
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 10.0.2.2

Ethernet adapter Ethernet 2:

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::d021:295b:832a:2403%9
   IPv4 Address. . . . . . . . . . . : 192.168.56.111
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :

Change IP

Since I don’t have a router or firewall in this situation, I entered the same IP in both the gateway and IP:

New-NetIPAddress -InterfaceAlias 'Ethernet 2' -IPAddress 192.168.50.1 -AddressFamily IPv4 -PrefixLength 24 -Defaul
tGateway 192.168.50.1

DNS

I don’t have a DNS server, so just use the same server:

PS C:\Users\Administrator>  Set-DnsClientServerAddress -InterfaceAlias Ethernet -ServerAddresses 192.168.50.1

Active Directory

Lets go to start:

Install-WindowsFeature AD-Domain-Services IncludeManagementTools -Verbose

install_feature

Verify if the installation is sucess:

Get-WindowsFeature -Name *AD*

feature

After completing the above steps going to deploy the domain:

PS C:\Users\Administrator> Get-Command -Module ADDSDeployment

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Cmdlet          Add-ADDSReadOnlyDomainControllerAccount            1.0.0.0    ADDSDeployment
Cmdlet          Install-ADDSDomain                                 1.0.0.0    ADDSDeployment
Cmdlet          Install-ADDSDomainController                       1.0.0.0    ADDSDeployment
Cmdlet          Install-ADDSForest                                 1.0.0.0    ADDSDeployment
Cmdlet          Test-ADDSDomainControllerInstallation              1.0.0.0    ADDSDeployment
Cmdlet          Test-ADDSDomainControllerUninstallation            1.0.0.0    ADDSDeployment
Cmdlet          Test-ADDSDomainInstallation                        1.0.0.0    ADDSDeployment
Cmdlet          Test-ADDSForestInstallation                        1.0.0.0    ADDSDeployment
Cmdlet          Test-ADDSReadOnlyDomainControllerAccountCreation   1.0.0.0    ADDSDeployment
Cmdlet          Uninstall-ADDSDomainController                     1.0.0.0    ADDSDeployment

Forest

Read More

Active Directory forest installation:

Install-ADDSForest -DomainName beeklabs.com -ForestMode Win2012 -DomainMode Win2012 -DomainNetbiosName BEEK -Instal
lDns:$true

I’ve provided the link above in case you’re interested in learning more about why it requests a password:

install_addforest

installation

Verify

Checking :

Get-ADDomainController -Discover


Domain      : beeklabs.com
Forest      : beeklabs.com
HostName    : {beeklabs.beeklabs.com}
IPv4Address : 192.168.50.1
IPv6Address :
Name        : BEEKLABS
Site        : Default-First-Site-Name

Other ways to verify if the installation is sucess:

PS C:\Windows\system32> Get-Service ADWS,Kdc,Netlogon,dns

Status   Name               DisplayName
------   ----               -----------
Running  ADWS               Active Directory Web Services
Running  dns                DNS Server
Running  Kdc                Kerberos Key Distribution Center
Running  Netlogon           Netlogon

Add machine: access

Remote management

The concept here is that we can control the server remotely. I’m using Windows 10 in this instance. Putting in place the capability:

Add-WindowsCapability online Name Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0

Go to the user and computer active directory once this section is complete, or the best option is to go to mmc.exe and add complement:

mmc

The user and computer active directory is another option for directly connecting to the Domain Controller:

user_computers

Advantage

Usage in Powershell

If we look at it we realize that in consumption we really notice a change:

Windows Server Core

process_monitor

Windows Server GUI

process2

Disadvantage

One disadvantage we have is that some roles cannot be installed here but we have alternatives.

© 2021 - 2024 B3nj1. All rights reserved