0 votes

Hi support.

I have a pool of generic AD accounts (relief1, relief2 etc) for our relief teachers. I want to schedule a PW reset for these accounts on a weekly basis and email these passwords to the line manager responsible for organising the relief lessons.

I cant quite work out how I will configure the workflow to send the actual generated PW to the managers email.

Thanks in advance

Corey

by (170 points)

1 Answer

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

Hello,

To do what you want, you can, for example, generate the password with the help of a script and send the e-mail message with the same script. For example, the following script resets a user's password to a random sequence of 10 characters and sends it to the user's manager specified in the Manager attribute:

$newPassword = "%adm-RandomString,10%" # TODO: Modify me
$to = "%adm-ManagerEmail%" # TODO: Modify me
$subject = "Password for %name% has been reset" # TODO: Modify me
$textBody =@"
Hello,

Password for %name% has been reset. New password: $newPassword

Please do not reply to this e-mail, it has been sent to you for notification purposes only.
"@ # TODO: Modify me

$Context.TargetObject.SetPassword($newPassword)
$Context.SendMail($to, $subject, $textBody, $NULL)

In the script:

  • $newPassword - specifies the template for new password generation. The %adm-RandomString% value reference in the script will be replaced with a random string generated when the Scheduled Task is executed. In the sample script it is limited to 10 characters as it often generates a very long string that goes far beyond the character limit allowed by Active Directory for passwords. For more information on value references, see the following help article: http://www.adaxes.com/help/?ValueRefere ... ormat.html.
  • $to - specifies the email of the notification recipient. The %adm-ManagerEmail% value reference in the script will be replaced with the email of the user's manager specified in the Manager attribute.
  • $subject - specifies the subject of the notification email.
  • $textBody - specifies the body of the notification email (in plain text format).

Modify the script to your requirements.

To use this script in your Scheduled Task, you need to add the Run a program or PowerShell script action to it.

0

Perfect...

As always, great support and no fuss resolutions. Great product and great team.

0

Hello,

Thank you for your good words, we really appreciate this!

Related questions

0 votes
1 answer

We are looking to use a custom form to create a NEW OU for every new office we open, the new OU needs to also have two other OU/containers and two generic ... with specific property patterns we can add separately with a new pattern). Thank you for assistance.

asked Jun 7, 2018 by willy-wally (3.2k points)
0 votes
1 answer

I would like to add "Configuration > Scheduled Tasks" to the Adaxes Web UI. I canĀ“t find an option to impelement this. Any hints?

asked Feb 9, 2021 by MatthiasP (20 points)
0 votes
1 answer

Hey, We've ran into a few issues recently where we ran out of Office Licenses without our knowledge and when that happens it causes a lot of our automation around this ... , so is that something we can easily configure on our scheduled tasks? Thank you, Ben

asked Mar 27, 2017 by Ben.Burrell (490 points)
0 votes
1 answer

When allowing Account Unlocking from the Self Password Reset service, is there a way to limit the amount of times that someone can unlock their account before they are ... would be greyed out, or removed altogether). Is something like this possible? Thanks!

asked Jun 18, 2014 by PunkinDonuts (360 points)
+1 vote
1 answer

Hi, Is there any way to make Password Self Service Policies OR Operation? Let say, user can enroll to both Q&A and OTP App Google Authenication. However, during the password reset, user can choose either to use Q&A or OTP App.

asked Nov 18, 2021 by fachmi (170 points)
2,733 questions
2,469 answers
6,460 comments
1,336,485 users