Tinus EngOps Wiki

Logo

OpsaC - Operating as PowerShell code

Links

Home

IT-Wiki

PowerShell Blog

PowerShell Index

PowerShell Search

Additional Websites

View my GitHub Profile

View my GitHub Gists

View my Codeberg Page

View my Photo Website

Domain Controller migrieren

published: February 27, 2015 author: Tinu tags: Domain Controller categories: Active Directory


Domain Controller Installieren

Windows Features installieren

Install-WindowsFeature -Name AD-Domain-Services -IncludeManagementTools

DC promoten

Check Server for DC-installation

Test-ADDSDomainControllerInstallation -DomainName $domain

Install additional Domain Controller

$domain = ""; $site = ""; $repldc = ""
Install-ADDSDomainController -InstallDns -DomainName $domain -SiteName $site`
-ReplicationSourceDC $repldc -SafeModeAdministratorPassword -NoRebootOnCompletion` 
-DatabasePath "E:\NTDS" -LogPath "E:\NTDS" -SysvolPath "E:\SYSVOL"

FSMO Roles transfer

Transfer forest-wide FSMO Roles to Target DC (beide Rollen sollten auf dem selben DC sein).

$targetdc = ""
Move-ADDirectoryServerOperationMasterRole -Identity $targetdc` 
-OperationMasterRole SchemaMaster
Move-ADDirectoryServerOperationMasterRole -Identity $targetdc`
-OperationMasterRole DomainNamingMaster

Transfer domain-wide FSMO Roles to Target DC (alle Rollen sollten auf dem selben DC sein).

$targetdc = ""
Move-ADDirectoryServerOperationMasterRole -Identity $targetdc` 
-OperationMasterRole PDCEmulator
Move-ADDirectoryServerOperationMasterRole -Identity $targetdc` 
-OperationMasterRole RIDMaster
Move-ADDirectoryServerOperationMasterRole -Identity $targetdc` 
-OperationMasterRole InfrastructureMaster

DC de-installieren

Der alte Domain Controller kann nun heruntergestuft und aus dem AD genommen werden.

DC demoten

Uninstall-ADDSDomainController -NoRebootOnCompletion

← Previous Post ◇ [ Top ] ◇ Copyright © 2024 by tinuwalther ◇ [ Blog ] ◇ Next Post →