# 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
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
RDP Reconnect (Win11 to Win2012)
Постійні реконекти rdp спричинені зміною протоколу з’єднання за замовченням на UDP. Для вирішення потрібно відредагувати локальну політику комп’ютера: Win+R -> gpedit.msc -> Enter На клієнті: Computer Configuration -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Connection Client -> (change the value of the rule “Turn off UDP on client”…