Powershell DC Installieren

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen

Installieren des AD Features

  • Install-WindowsFeature -Name AD-Domain-Services -IncludeManagementTools -IncludeAllSubFeature

Installieren der AD

Erstellen eines Wiederherrstellungspasswortes

  • $pwd = Read-Host "Geben Sie ihr Passwort ein:" -AsSecureString

Installation des Forest

  • Install-ADDSForest -DomainName hack.lab -DomainNetBiosName HACK -DomainMode WinThreshold -ForestMode WinThreshold -SkipPreChecks -InstallDns:$true -SafeModeAdministratorPassword $pwd -Force
Die Warnungen können ignoriert werden. Der Server wird nach Abschluss der Installation automatisch neu starten.

Funktions Level Abfrage

  • (Get-ADDomain | Format-List Name, DomainMode) + (Get-ADForest | Format-List Name, ForestMode)

Grundlegende DNS-Konfigurationen

Welche Zonen sind schon eingerichtet

  • Get-DnsServerZone

Optionale Reverse Zone

  • Add-DnsServerPrimaryZone -NetworkID 192.168.100.0/24 -ReplicationScope Domain -DynamicUpdate Secure -PassThru