I was trying to find the disabled user accounts in the last 7 days using Powershell script.
But to my surprise, none of the script is written to query the IsDiabled attribute of the user property. Instead, it’s looking for WhenChanged, but this is not a correct method as its just assuming that the last change was disabling user account.
Could someone give me a lead here please? Is such a script is not possible to fetch user accounts that are disabled in last 7 days? If possible, could you please share it?
Any help is much appreciated !!