How to Remove Windows Server 2016 DHCP Role.
With GUI
1. In Менеджер сервера, in the upper menu click Manage. Натисніть Remove Roles and Features;
2. For Server Selection, select your server and click Далі;
3. For Server Roles, deselect DHCP Server;
4. In the pop-up window click Remove Features;
5. Натисніть Далі;
6. For Features. Натисніть Далі;
7. For Confirmation, click Remove;
8. For Results, click Закрити;
9. Restart the system;
10. After the system reboots, the role disappears;
With PowerShell
1. бігти PowerShell as administrator;
2. For DHCP console removal;
Uninstall-WindowsFeature RSAT-DHCP
3. For DHCP Role removal;
Uninstall-WindowsFeature DHCP -Remove
4. Reboot the server.
ПРИМІТКА: After DHCP role uninstalled check ADSI, if you plan to install it again.