Powershell DC Installieren: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| Zeile 10: | Zeile 10: | ||
*(Get-ADDomain | Format-List Name, DomainMode) + (Get-ADForest | Format-List Name, ForestMode) | *(Get-ADDomain | Format-List Name, DomainMode) + (Get-ADForest | Format-List Name, ForestMode) | ||
=Grundlegende DNS-Konfigurationen= | =Grundlegende DNS-Konfigurationen= | ||
| − | ==Welche Zonen sind schon eingerichtet= | + | ==Welche Zonen sind schon eingerichtet== |
*Get-DnsServerZone | *Get-DnsServerZone | ||
==Optionale Reverse Zone== | ==Optionale Reverse Zone== | ||
*Add-DnsServerPrimaryZone -NetworkID 192.168.100.0/24 -ReplicationScope Domain -DynamicUpdate Secure -PassThru | *Add-DnsServerPrimaryZone -NetworkID 192.168.100.0/24 -ReplicationScope Domain -DynamicUpdate Secure -PassThru | ||
Aktuelle Version vom 16. November 2021, 11:33 Uhr
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