Powershell and AD List all accounts set to ENABLED in the Last 24 hrs

microchipmatt 6 Reputation points
2021-04-22T06:44:48.73+00:00

Is there a way to use PowerShell to list all users in an specific OU that were Enabled in the Last 24Hrs?

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. Anonymous
    2021-04-22T08:38:43.973+00:00

    Hi,

    You can only list the AD users modified in the last 24 hours unless you have enabled auditing on the OU. The activities are recorded in the Security Event Log and you can parse it to get the AD users.

    How to enable auditing of AD objects

    Best Regards,
    Ian Xue

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

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.