How to determine/Identify which Users in my Domain environment is able to join Domain on work stations

Muhammad Moiz 0 Reputation points
2023-01-19T07:21:56.5466667+00:00

Hi. My issue is we have only allow 1 users in my enviroment is able to join domain on workstations. but i randomly checked with some users accounts their accounts are also able to join domain to work stations.

So how can i identify which users hve access to join domain to work stations, with any powershell command.?

Then i also blocked all the users to do this except one.

Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Client for IT Pros | User experience | Other
Microsoft Security | Microsoft Graph
Microsoft Security | Microsoft Entra | Other
Microsoft 365 and Office | Access | For business | Windows
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Limitless Technology 44,761 Reputation points
    2023-01-19T15:28:29.7833333+00:00

    Hello Mihammad Moiz

    To set or review delegate Domain Join permissions for the accounts, you can use the next steps:

    1 - Run run Active Directory Users and Computers console (dsa.msc) as Domain Administrator.

    2 - Click on the OU where the computer account will be added, right click and select Delegate Control.

    3 - Add the user on the list and select next

    4 - Select a custom task to delegate, select next

    5 - Select Computer Objects from the list of objects and next.

    6 - Check for the below noted permissions and properties.

    Required

    Object permissions:

    ResetPassword

    Recommended

    Object Properties:

    Write DNS Host Name Attributes

    Write userAccountControl

    Write servicePrincipalName

    Optional

    Object Properties:

    Write Operating System

    Write Operating System Version

    Write userPrincipalName

    If the computer does not exist then the only right required is "Create Computer Object" If you are joining in User Personality Mode (UPM) mode you will also need the right of "Write preferredOU".


    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.