Hey all, I am trying to use this script to deactivate all users after 365 days:
I have updated numOfDays to 365, but the script only found users up to a certain username alphabetically. It stopped somewhere in the 'E’s. I cannot get it to find anymore idle users, despite confirming there are still plenty of ‘active’ idle users.
Not sure if this is relevant, but each time a ran the script (had to run it 4-5 times for it to deactivate users A-E alphabetically) it deactivated less and less users each time. The first run was around 450 users, and it got exponentially smaller after that (i.e. run 1: deactivated 450 users, run 2: deactivated 90 users, run 3: deactivated 15 users, run 4: deactivated 1 user.
Any help would be greatly appreciated.