How to auto disable AD USER when its expiration date is overdue by powershell?

STzeyao 20 Reputation points
2023-08-16T09:14:05.47+00:00

Hi,

I would like to auto-disable AD USER when its expiration date is overdue by using powershell script. Dose anyone has any ideas?

Thank you.

Rachel

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

Accepted answer
  1. Vinodh247 34,666 Reputation points MVP Volunteer Moderator
    2023-08-16T09:56:23.6633333+00:00

    Hi STzeyao:

    I see a workable solution in the below link. Its very crisp and clear, can you try if this works out for you and let me know?

    https://virot.eu/automatically-disable-users-when-expired/

    1 person found this answer helpful.

0 additional answers

Sort by: Most 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.