How to enabled all those users who have disabled kerberos preauthentication.

HASSAN BIN NASIR DAR 391 Reputation points
2023-03-23T13:31:35.8366667+00:00

Hi

I have 200 users in my active directory. Few of them have kerberos pre-authentication is disabled.

I can get a list of users who have Kerberos pre-authentication disabled with the help of below cmlets:

Get-ADUSer -Filter { DoesNotRequirePreAuth -eq $true } -Properties DoesNotRequirePreAuth | select SamAccountName, DoesNotRequirePreAuth

My question is:

How to enabled all those users who have disabled kerberos preauthentication.

I have command to enabled one by one user or OU based users. I do not want this.

I want to enabled all those users who have disabled kerberos preauthentication in a domain.

Thanks

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Thameur-BOURBITA 36,261 Reputation points Moderator
    2023-03-23T14:28:09.9166667+00:00

    Hi @Chapter7-2723

    You can try this command to force kerberos Preauthentication:

    Get-ADUSer -Filter 'DoesNotRequirePreAuth -eq $true ' | Set-ADAccountControl -doesnotrequirepreauth $false

    Please don't forget to mark helpful answer as accepted

    1 person found this answer helpful.

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.