Eureka Moment Wiki

One eureka moment at the time

User Tools

Site Tools


windows:powershell_commands:add_core_addc_2016

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
windows:powershell_commands:add_core_addc_2016 [2017/08/10 13:00]
127.0.0.1 external edit
windows:powershell_commands:add_core_addc_2016 [2019/10/31 09:06] (current)
Line 1: Line 1:
 ====== Setup a Domain Controller with Windows 2016 Server Core ====== ====== Setup a Domain Controller with Windows 2016 Server Core ======
 Setup static IP Open Powershell Install ADDS  Setup static IP Open Powershell Install ADDS 
-<​code>​install-windowsfeature ​AD-Domain-Services</​code>​+<​code ​powershell> 
 +Install-WindowsFeature ​AD-Domain-Services 
 +#or 
 +Install-WindowsFeature AD-Domain-Services -IncludeManagementTools 
 +</​code>​
 Commands: Commands:
   * **Add-ADDSReadOnlyDomainControllerAccount** - Install read only domain controller   * **Add-ADDSReadOnlyDomainControllerAccount** - Install read only domain controller
Line 18: Line 22:
 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,​ I will provide a sample setup for you to follow. I will lay this out line per line, to make for easy reading, but when you are passing the parameters, please be sure not to break lines anywhere. The line breaks in my example are just for readability:​ 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,​ I will provide a sample setup for you to follow. I will lay this out line per line, to make for easy reading, but when you are passing the parameters, please be sure not to break lines anywhere. The line breaks in my example are just for readability:​
  
-<​code>​+<​code ​powershell>
 Install-ADDSForest Install-ADDSForest
 -CreateDnsDelegation:​$false -CreateDnsDelegation:​$false
Line 33: Line 37:
 </​code>​ </​code>​
  
-===== Installing the Additional Domain Controller in domain===== +===== Installing the Additional Domain Controller in domain ===== 
-<​code>​Install-ADDSDomainController -DomainName contoso.com -InstallDNS:​$True –Credential (Get-Credential)</​code>​+<​code ​powershell>​Install-ADDSDomainController -DomainName contoso.com -InstallDNS:​$True –Credential (Get-Credential)</​code>​
  
 Transfering roles to the new server Transfering roles to the new server
Line 42: Line 46:
   - Click '​Change'​ on all roles   - Click '​Change'​ on all roles
  
-===== Joining server into the domain===== +===== Joining server into the domain ===== 
-<​code>​add-computer -DomainName contoso.com -Credential (Get-Credential)</​code>​+<​code ​powershell>​add-computer -DomainName contoso.com -Credential (Get-Credential)</​code>​
  
 +===== Subdomain =====
 +<code powershell>​
 +Install-ADDSDomain -NewDomainName sub -ParentDomainName contoso.com -InstallDNS -CreateDNSDelegation -DomainMode 7 -SafeModeAdministratorPassword (Get-Credentials) -Credentials (Get-Credentials)
 +</​code>​
windows/powershell_commands/add_core_addc_2016.txt · Last modified: 2019/10/31 09:06 (external edit)