Powershell DC Installieren: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
 
(7 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 2: Zeile 2:
 
*Install-WindowsFeature -Name AD-Domain-Services -IncludeManagementTools -IncludeAllSubFeature
 
*Install-WindowsFeature -Name AD-Domain-Services -IncludeManagementTools -IncludeAllSubFeature
 
=Installieren der AD=
 
=Installieren der AD=
<pre>
+
==Erstellen eines Wiederherrstellungspasswortes==
$pwd = Read-Host "12356-Start$" -AsSecureString
+
*$pwd = Read-Host "Geben Sie ihr Passwort ein:" -AsSecureString
Install-ADDSForest `
+
==Installation des Forest==
-DomainName hack.lab -DomainNetBiosName HACK `
+
*Install-ADDSForest -DomainName hack.lab -DomainNetBiosName HACK -DomainMode WinThreshold -ForestMode WinThreshold -SkipPreChecks -InstallDns:$true -SafeModeAdministratorPassword $pwd -Force
-DomainMode WinThreshold -ForestMode WinThreshold `
+
;Die Warnungen können ignoriert werden. Der Server wird nach Abschluss der Installation automatisch neu starten.
-SkipPreChecks `
+
=Funktions Level Abfrage=
-InstallDns:$true `
+
*(Get-ADDomain | Format-List Name, DomainMode) + (Get-ADForest | Format-List Name, ForestMode)
-SafeModeAdministratorPassword $pwd `
+
=Grundlegende DNS-Konfigurationen=
-Force
+
==Welche Zonen sind schon eingerichtet==
</pre>
+
*Get-DnsServerZone
 +
==Optionale Reverse Zone==
 +
*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