0 votes

I have a deprovision task that our desktop support staff uses to terminate a user and want to setup a scheduled task that goes through and looks for users who are past their account expiration date (which gets set in the deprovision task) and part of the disabled users group. If they meet those conditions it will email the manager for approval to move to disabled users OU so that it will be removed from our Office 365 subscription freeing up a license. Problem is the script even though it looks for the presence of that group and an account expires value of less than or equal to the current date it is still applied to ALL users in the organization.

Why?

by (80 points)
0

Hello,

To get around with the issue, we need to have a look at:

  • a screenshot of your Scheduled Task,
  • your script.

You can either post them here or, if you don't want to publish them on a public forum, you can send them to our support email (support[at]adaxes.com).

Please log in or register to answer this question.

Related questions

0 votes
1 answer

I want to create a scheduled task to disable a user if he is inactive for 30days, the task must check inacivity o AD and Azure.

asked May 16 by johanpr (120 points)
0 votes
1 answer

Hello, I'm trying to create a daily scheduled task that runs that automatically disables users AD accounts who havent logged in to the domain in 45 days. At the same time ... inactivity period but it appears to only allow me to select weeks instead of days.

asked Apr 14, 2020 by sirslimjim (480 points)
0 votes
1 answer

Forgive me if this topic has been discussed elsewhere i searched and didn't find anything. What I would like to have adaxes do is on a nightly basis 1. go to a folder it ... disabled by adaxes $date" } Is this possible #4 eludes me a bit. Thank you in advance.

asked Jun 19, 2018 by dexion11 (50 points)
0 votes
1 answer

Receive "Index operation failed; the array index evaluated to null. Stack trace: at <ScriptBlock>, <No file>: line 104>" and "Index operation failed; the ... $GroupName, $GroupDN." } } #foreach write-output "" Write-Output "" Stop-Transcript

asked Apr 14, 2022 by jbahou (20 points)
0 votes
1 answer

I have a feild called Decommissioned Date and I can not figure out how to run a scheduled task the day after that date. So If an account got decommissioned today I want the task to run tomorrow.

asked Jan 9, 2020 by hgletifer (1.3k points)
3,588 questions
3,277 answers
8,303 comments
548,090 users