Friday, 3 January 2020

Powershell - add new DC to domain or remove DC from domain


#DCPROMO / add new DC

Install-WindowsFeature AD-Domain-Services -IncludeManagementTools
Import-Module ADDSDeployment
Install-ADDSDomainController -DomainName "nordsoncorp.local" -DatabasePath "E:\windows\NTDS" -LogPath "E:\windows\NTDS" -SysvolPath "E:\windows\SYSVOL"




 
#uninstall DC

Uninstall-ADDSDomainController -Confirm:$false -Force:$true 

No comments:

Post a Comment