Powershell DC Installieren
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)