# Import the ADDSDeployment module Import-Module ADDSDeployment # Demote the server Uninstall-ADDSDomainController -DemoteOperationMasterRole:$true -RemoveDnsDelegation:$true -Force:$true # Run the following command after the reboot to remove the Active Directory Sites and Services Uninstall-WindowsFeature AD-Domain-Services -IncludeManagementTools source link
Month: April 2025
view AD replication status
repadmin /showrepl
List domain controllers
netdom query dc /Domain:domain-name.local
Suppressing the “reason” for shutdown on Windows Server
reg.exe add “HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Reliability” /v ShutDownReasonOn /t REG_DWORD /d 0 /f source link