October 24, 2018

Windows Server Core AD Configuration

Utilize Sconfig to change network setting, join domain, change computer name.

-----PowerShell-------------------
Powershell Change IP address

In Hyper-V:
Get-NetIPAddress for the interface alias
Get-NetIPConfiguration
Remove-netipaddress -interfaceIndex 2
New-NetIPAddress -InterfaceIndex 2 -IPAddress 192.168.20.20 -PrefixLength 24 -DefaultGateway 192.168.20.1
Set-DnsClientServerAddress -InterfaceIndex 2 -ServerAddresses "192.168.20.11"
---------------------------------------

DC Promo and join to existed domain

Install-WindowsFeature AD-Domain-Services -IncludeManagementTools
Install-ADDSDomainController -DomainName "sixteen.contoso.ad" -credential $(get-credential)

Transfer FSMO Roles

Find FSMO host:
Get-ADForest contoso.com | ft DomainNamingMaster, SchemaMaster
Get-ADDomain contoso.com | ft InfrastructureMaster, PDCEmulator, RIDMaster

Transfer:
Move-ADDirectoryServerOperationMasterRole -Identity “dc2” –OperationMasterRole DomainNamingMaster,PDCEmulator,RIDMaster,SchemaMaster,InfrastructureMaster


No comments:

Post a Comment