Hello,

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

by (16.4k points)
0 votes

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

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
1 answer

I am currently trying to configure a client in Adaxes that has multiple domain names. They are already configured with a .nl address and that works fine. Now ... the domain name when creating the user. https://www.adaxes.com/help/ConfigureUPNSuffixSelection/

asked Feb 20 by Cas (220 points)
0 votes
1 answer

After installing the self-service client MSI, at the Windows login screen, when clicking other user, the default domain isn't available, users need to click sign in ... and this is applied but with Self-Service client installed not showing by default.

asked Jan 19 by melissa.meyer (20 points)
0 votes
0 answers

I was wondering if the abilities below are configurable for Domain Admin users in the web portal: Mass password reset Assign different passwords per person, so it's not the same ... to our users, instead of me writing a powershell script to do this. Thank you!

asked Jul 18, 2025 by apruitt (450 points)
0 votes
1 answer

Does Adaxes support this natively or would we have to rely on Graph API to accomplish this?

asked Jun 26, 2025 by ms1 (40 points)
0 votes
1 answer