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 (226k points)
selected by
Best answer


You will need to use a slightly different approach:


thank you so much! ;-)

Related questions

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 (90 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.0k 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)
0 votes
1 answer

I want to create a custom Deprovission command which exports the mailbox of the user to a pst file, when it's completed the account should be deleted. Can this be done with adaxes? Thnx Remco

asked Jan 10, 2014 by RTiel (780 points)
2,779 questions
2,512 answers
26,281 users