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 (270 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

Hello, Based on your script, we check whether there is already a request. However, we often get the following error and do not know why. Can you help us? ... Cannot compare "Softerra.Adaxes.Adsi.Search.AdmSearchResult" because it is not IComparable. Thank you

asked 3 days ago by DRiVSSi (280 points)
0 votes
1 answer

the script repo examples are almost entirely written in ADSI, however powershell is now far more widely used, is it possible to have all scripts written in both ADSI and powershell.

asked Jan 5 by i*windows (260 points)
3,346 questions
3,047 answers
7,773 comments
544,974 users