0 votes


is there possibility to catch the "Domain NetbiosName" of a User object? We'd like to use this for a Password Reminder eMail to the Account Owner.

Subject on "Send e-mail notification" action should look like: "Your password on %Domain NetbiosName%\%username% will expire in %adm-PasswordExpiresDaysLeft% day(s)

We found an attribute for DomainDistinguishedName (adm-DomainDN), only

Best regards Michael

by (20 points)

1 Answer

0 votes
by (5.5k points)

Hello Michael,

Yes, it is possible using a PowerShell script to send the email notification. Please, find the script below. In the script:

  • $subjectTemplate - Specifies a template for the email notification subject. In the template, the {0} placeholder will be replaced with the domain name of the account.
  • $message - Specifies the email notification message.
$subjectTemplate = @"
Your password on {0}\%username% will expire in %adm-PasswordExpiresDaysLeft% day(s)
"@ # TODO: modify me
$message = "Your account password expires in %adm-PasswordExpiresDaysLeft% day(s)" # TODO: modify me

# Get domain name
$domain = $Context.BindToObjectByDN("%adm-DomainDN%")
$domainName = $domain.Get("name")

# Build subject
$subject = [System.String]::Format($subjectTemplate, @($domainName))

# Send mail
$Context.SendMail("%mail%", $subject, $message, $NULL)

Related questions

0 votes
1 answer

Hello, We currently use a lot of business rules that act as job templates. When a matching job title is found after a user creation, it runs the business rule to ... business rule is applied so the user is at least assigned a basic access template? Thanks

asked Jun 6, 2018 by jhair (520 points)
0 votes
0 answers

This is issue has been going on for awhile with worsening symptons. We opened up this ticket awhile back when it was just the web interface that wouldn't work and after ... to get to the bottom of this. Having a separate install is not a viable option.

asked Jul 1 by mark.it.admin (1.6k points)
0 votes
0 answers

When the help desk is trying to create a user, they get and error that has our domain info in it. When a System Admin attempts to create an account, it goes ... permissions have been made. Running v2021.1 parameter is incorrect error (Server: 'domain.com')

asked Jun 25 by matthew.eccles (20 points)
0 votes
1 answer

Hello, How it works if I have multiple accounts in one domain, and other accounts in others domains managed by Adaxes ? Thank you. Regards. Pierre

asked Jun 9 by pierre.saucourt (40 points)
0 votes
1 answer

Hello, after update to 2021.1 we have problems with an old Windows 2003 domain. The service account for the domain will rapidly locked out from the Adaxes server. What we ... in 2021.1 for Managed Domain? Or how can I integrade old domains? regards Helmut

asked Mar 12 by a423385 (450 points)
2,575 questions
2,317 answers
767,380 users