Windows Server & Active Directory

Windows Server · PowerShell · Hyper-V · DNS · DHCP · Active Directory

docs/Active Directory domain
54 lines1.41 KB

Active Directory domain

Active Directory Domain Services

The Active Directory-Domänendienste role, including management tools, was installed on server DC.

Install-WindowsFeature AD-Domain-Services -IncludeManagementTools

A new forest was then created with domain gfnlab.test and NetBIOS name GFNLAB.

$DSRM = Read-Host "DSRM-Kennwort" -AsSecureString

Install-ADDSForest `
-DomainName "gfnlab.test" `
-DomainNetbiosName "GFNLAB" `
-InstallDns:$true `
-SafeModeAdministratorPassword $DSRM `
-Force

Domain status

The domain and forest use the Windows Server 2016 functional level. The ADWS, DNS and Netlogon services were checked after installation.

Get-ADDomain | Format-List DNSRoot,NetBIOSName,DomainMode
Get-ADForest | Format-List Name,ForestMode
Get-Service ADWS,DNS,Netlogon | Format-Table Name,Status -AutoSize

Active Directory domain status

W11 domain join

The Windows 11 client was joined to the gfnlab.test domain.

Add-Computer `
-DomainName "gfnlab.test" `
-Credential "GFNLAB\Administrator" `
-Restart

Domain membership was checked after restarting. The client is listed as MemberWorkstation.

Get-ComputerInfo |
Select-Object CsName, CsDomain, CsDomainRole

Windows 11 client domain join