0 votes

hello,

I have a scheduled taske running on a few OUs that will disable and move the account into another OU once the account haven't been logged into for x amount of time. We are now ready to delete some of those accounts that have been disabled for 6 months or more, prior to the actual deletion, but want a report on what's gonna get deleted.

I didn't locate a script in the repository that fulfill this and when I tried to use the scheduled task just to move the accounts to one OU, the option isn't quite there, so powershell to the rescue, right?

Please advise. thanks

by (1.7k points)

1 Answer

0 votes
by (216k points)
selected by
Best answer

Hello,

Actually, there is no need for a script to accomplish that. You can use the built-in Inactive Users Report.

It provides you a list of accounts that haven't logged on to AD during a certain number of days. Also, you can limit the scope of the report to the OU you need.

Once the report is generated, you can tick the accounts you no longer need and delete them.

Related questions

0 votes
1 answer

Hello, Using the "Inactive user allowed to log in" report in Adaxes, I want to be able to select specific OUs to exclude out of the scope in this report, or have the option to filter based on a user property such as Department.

asked Nov 8, 2022 by GronTron (320 points)
0 votes
1 answer

Hello, could you guys help create a report for us to run via a schedule task. I need something I could configure over a specific OU that will look for user objects with a ... we going to be able to automate the canned reports you provide? That would be great!

asked Jul 24, 2017 by Ben.Burrell (490 points)
0 votes
1 answer

Hello Would it be possible for us to have a report which details: User Name Description Office Mobile Phone Number Custom Attribute 3 (we are using this alongside mobile phone number to contain the model of phone) Mobile Phone (Other) Thanks in adavance

asked Feb 2, 2016 by CBurn (700 points)
0 votes
1 answer

feature request: Allow scheduled reports to have any email address as a recipient.

asked 10 hours ago by PaulPCGuy7 (20 points)
0 votes
1 answer

Hi, I am working on making a custom Approval Request notification E-mail, and I'd like to include the Approve and Deny buttons, but I haven't found a way to get ... awaiting-their-approval-s212.htm Do you have any suggestions on how to best generate the URLs?

asked Oct 29 by Martin (150 points)
3,549 questions
3,240 answers
8,232 comments
547,814 users