![](https://it-infrastructure.solutions/content/images/2022/04/image-62.png)
This article has not been completed yet. However, it may already contain helpful Information and therefore it has been published at this stage.
![](https://it-infrastructure.solutions/content/images/2022/04/image-63.png)
# Rename Computer
Rename-Computer -NewName DC1
# Reboot
Restart-Computer -Force
![](https://it-infrastructure.solutions/content/images/2022/04/image-64.png)
# Set IP-Address & Gateway
New-NetIPAddress –IPAddress 192.168.15.10 -DefaultGateway 192.168.15.2 -PrefixLength 24 -InterfaceIndex (Get-NetAdapter).InterfaceIndex
![](https://it-infrastructure.solutions/content/images/2022/04/image-65.png)
# Set DNS - Server
Set-DNSClientServerAddress –InterfaceIndex (Get-NetAdapter).InterfaceIndex –ServerAddresses 192.168.15.10
![](https://it-infrastructure.solutions/content/images/2022/04/image-66.png)
Install-WindowsFeature -name AD-Domain-Services -IncludeManagementTools
![](https://it-infrastructure.solutions/content/images/2022/04/image-67.png)
Install-ADDSForest -DomainName corp.company.com -DomainNetBIOSName Test -InstallDNS
# According to Microsoft's recommendation, you should not create a private domain (comnpany.local) but a subdomain of your official domain (corp.company.com)
![](https://it-infrastructure.solutions/content/images/2022/04/image-68.png)
![](https://it-infrastructure.solutions/content/images/2022/04/image-69.png)
![](https://it-infrastructure.solutions/content/images/2022/04/image-70.png)
![](https://it-infrastructure.solutions/content/images/2022/04/image-71.png)
![](https://it-infrastructure.solutions/content/images/2022/04/image-72.png)
![](https://it-infrastructure.solutions/content/images/2022/04/image-90.png)
References:
https://petri.com/windows-server-2022-as-a-domain-controller/
DNS namespace planning - Windows Server
Describes the design of the DNS namespace in an Active Directory environment.
![](https://learn.microsoft.com/en-us/media/logos/logo-ms-social.png)