0 votes

Hello Community,

we want to allow every IT-Coordinator do disable Users.

Our Process is as followed:

  • the manager of the OU can mark a user to be disabled by a specific date! (not directly deleted, because we have a retention period in which out-of-office messages have to be sent)
  • approval by IT team
  • do some changes to the user, but the user has to be left active (changes in the screenshot)
  • user should be deleted automatically by a scheduled task after the date set by the manger plus one month


so the user has to be active until the user will be deleted. this is needed because we want to have an out-of-office message regarding for one month. afther this one month, the user can be deleted by the scheduled task.


my first try was to set the parameter given from the manager in the webform of the last day to a customattribute and then let the scheduled task run every day and see if the dates is one month after the "lastday-parameter".

is this possible in such a way?

or is there another way to schedule a task for later?

by (200 points)

1 Answer

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


You will need to use a slightly different approach:


thank you so much! ;-)

Related questions

0 votes
1 answer

Hi We have a couple of scheduled tasks set up to remove accounts which have been disabled for a perios of time. This works fine for normal user accounts, but we ... and former domain admin accounts? We're running the latest version of Adaxes Thanks Matt

asked Oct 26, 2022 by chappers77 (1.6k points)
0 votes
1 answer

Hello, we cannot delete users with adminCount=1 with the buildin action "Delete the user" because of missing (adminSDHolder)permission to delete users as ... $identity = "%distinguishedName%" Remove-AdmUser -Identity $identity -Confirm:$False regards Helmut

asked Nov 17, 2020 by a423385 (510 points)
0 votes
1 answer

I have a scheduled task that runs a Powershell script against an AD group, "Group 1". I need to get all of the members of Group 1, and add them to Group 2. The ... identity in the error message start with 'user;'? What is the correct way to accomplish this?

asked Aug 27, 2019 by ngb (130 points)
0 votes
1 answer

I am attempting to give some users rights to modify the report that is scheduled such as to add additional users or remove users or even move the report to a different ... i grant the rights to just modify the scheduled reports? Thank you for your help!

asked Sep 28, 2021 by mark.it.admin (2.2k points)
0 votes
1 answer

We are working with an HR package that will send us a CSV file every 4 hours with a list of users that need to be created, modified or deleted from our environment. The CSV ... change, etc.) Is there a script that can manage all of that on a scheduled basis?

asked Sep 2, 2020 by RayBilyk (220 points)
2,991 questions
2,710 answers
200,472 users