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 (215k 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, 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

Hello, I have a problem regarding approval, the case is I will send approval to the admin if there are additional users. The process has been successful and the approval ... " in "custom command" and then executed it in "business rule" before creating user.

asked Feb 15 by systech (100 points)
0 votes
0 answers

As the title mentions, I'm trying to figure out a way to have HR apply multiple modifications on a user's account (change of position, title, department, phone, etc...) ... phone number (in the same form), it sends two approval requests. Thanks for your help!

asked Jan 26 by lw.fa (60 points)
0 votes
1 answer

Hi, I was just wondering if there was a way to force the format of the date picker value in the web approval interface. We have operation that are very time specific ... like that in the web interface. Example of the problem: Thank you, Jean-Simon Tremblay

asked Dec 3, 2021 by jsimon.tremblay (20 points)
2,740 questions
2,474 answers
6,475 comments
1,372,202 users