On the domain controller, open the group policy management tool.
Create a new group policy.
Enter a name for the new group policy.
In our example, the new GPO was named: MY-GPO.
On the Group Policy Management screen, expand the folder named Group Policy Objects.
Right-click your new Group Policy Object and select the Edit option.
On the group policy editor screen, expand the Computer configuration folder and locate the following item.
Access the User rights assignment option.
Enable the option named Add workstations to Domain.
Add the desired list of user accounts or groups.
In our example, the user account named GOKU and the group named WORKSTATION-ADMIN are allowed to add computers to the domain.
To save the group policy configuration, you need to close the Group Policy editor.
The default domain controllers policy already has a configuration for this item.
The default domain controllers policy is set to allow any authenticated user to add computers to the domain.
You need to disable this part of the configuration on the default domain controllers policy.
Congratulations! You have finished the GPO creation.