Here is a step-by-step guide on how to create and configure a read-only domain controller (RODC) using both GUI and PowerShell with comments:
Creating an RODC using GUI:
- Open Server Manager and select “Add Roles and Features”.
- Click “Next” until you reach the “Server Roles” page.
- Check the “Active Directory Domain Services” role and click “Next”.
- Click “Next” until you reach the “Features” page.
- Check the “AD DS Snap-Ins and Command-Line Tools” feature and click “Next”.
- Click “Install” and wait for the installation to complete.
- Once the installation is complete, open “Active Directory Users and Computers”.
- Right-click on the domain and select “Create a new Domain Controller”.
- Click “Next” until you reach the “Additional Domain Controller Options” page.
- Select “Read-only domain controller (RODC)” and click “Next”.
- Follow the prompts to complete the installation.
Configuring an RODC using GUI:
- Open “Active Directory Users and Computers”.
- Right-click on the RODC and select “Properties”.
- Click on the “Password Replication Policy” tab.
- Click “Advanced”.
- Click “Add”.
- Enter the username or group name that you want to allow password caching for.
- Click “OK” to save the changes.
Creating an RODC using PowerShell:
- Open PowerShell with administrator privileges.
- Install the Active Directory PowerShell module by running the following command:
Install-WindowsFeature RSAT-AD-PowerShell - Run the following command to create a new RODC:
Install-ADDSDomainController -DomainName <domainname> -InstallDNS:$true -ReadOnlyReplica:$true -SiteName <sitename> -Credential (Get-Credential) - Follow the prompts to complete the installation.
Configuring an RODC using PowerShell:
- Open PowerShell with administrator privileges.
- Run the following command to allow password caching for a user or group:
Set-ADDomainControllerPasswordReplicationPolicy -Identity <RODCname> -Allowed <username/groupname> - To deny password caching for a user or group, run the following command:
Set-ADDomainControllerPasswordReplicationPolicy -Identity <RODCname> -Denied <username/groupname>
Note: In both GUI and PowerShell, make sure to follow best practices when configuring RODCs, such as placing them in secure locations and limiting the users and groups that are allowed to cache passwords on them.
