# 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
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” to Enabled)
На Сервері:
Computer Configuration -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Connections -> Select RDP transport protocols-> (Enable this and select “Use only TCP”)
Джерело: https://www.reddit.com/r/sysadmin/comments/1izhr2c/suddenly_rdp_from_win11_to_server_2012r2_keeps/