Differences
This shows you the differences between two versions of the page.
— | windows:powershell_commands:add_core_addc_2016 [2019/10/31 09:06] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Setup a Domain Controller with Windows 2016 Server Core ====== | ||
+ | Setup static IP Open Powershell Install ADDS | ||
+ | <code powershell> | ||
+ | Install-WindowsFeature AD-Domain-Services | ||
+ | #or | ||
+ | Install-WindowsFeature AD-Domain-Services -IncludeManagementTools | ||
+ | </ | ||
+ | Commands: | ||
+ | * **Add-ADDSReadOnlyDomainControllerAccount** - Install read only domain controller | ||
+ | * **Install-ADDSDomain** - Install first domain controller in a child or tree domain | ||
+ | * **Install-ADDSDomainController** - Install additional domain controller in domain | ||
+ | * **Install-ADDSForest** - Install first domain controller in new forest | ||
+ | * **Test-ADDSDomainControllerInstallation** - Verify prerequisites to install additional domain controller in domain | ||
+ | * **Test-ADDSDomainControllerUninstallation** - Uninstall AD services from server | ||
+ | * **Test-ADDSDomainInstallation** - Verify prerequisites to install first domain controller in a child or tree domain | ||
+ | * **Test-ADDSForestInstallation** - Install first domain controller in new forest | ||
+ | * **Test-ADDSReadOnlyDomainControllAccountCreation** - Verify prerequisites to install read only domain controller | ||
+ | * **Uninstall-ADDSDomainController** - Uninstall the domain controller from server | ||
+ | ===== Installing the First Domain Controller in Forest ===== | ||
+ | |||
+ | This will install the basic features and functions, however, if you want to install a customised setup – which I assume you would want to do – in a proper business environment, | ||
+ | |||
+ | <code powershell> | ||
+ | Install-ADDSForest | ||
+ | -CreateDnsDelegation: | ||
+ | -DatabasePath “C: | ||
+ | -DomainMode “Win2012R2” //use integer 7 for Win2016 | ||
+ | -DomainName “contoso.com” | ||
+ | -DomainNetbiosName “CONTOSO” | ||
+ | -ForestMode “Win2012R2” //use integer 7 for Win2016 | ||
+ | -InstallDns: | ||
+ | -LogPath “C: | ||
+ | -NoRebootOnCompletion: | ||
+ | -SysvolPath “C: | ||
+ | -Force: | ||
+ | </ | ||
+ | |||
+ | ===== Installing the Additional Domain Controller in domain ===== | ||
+ | <code powershell> | ||
+ | |||
+ | Transfering roles to the new server | ||
+ | - Open ADUC | ||
+ | - Change domain controller to the desired DC | ||
+ | - Open ' | ||
+ | - Click ' | ||
+ | |||
+ | ===== Joining server into the domain ===== | ||
+ | <code powershell> | ||
+ | |||
+ | ===== Subdomain ===== | ||
+ | <code powershell> | ||
+ | Install-ADDSDomain -NewDomainName sub -ParentDomainName contoso.com -InstallDNS -CreateDNSDelegation -DomainMode 7 -SafeModeAdministratorPassword (Get-Credentials) -Credentials (Get-Credentials) | ||
+ | </ |