Hi @Amul Khanal
Thank you for posting this in Microsoft Q&A.
I understand you have created bulk users, and you want to send login details to their respective mails.You can use PowerShell to send the user login details in their respective mails with Send-MailMessage command. Below is the sample request
$sendMailMessageSplat = @{
From = 'User01 <******@fabrikam.com>'
To = 'User02 <******@fabrikam.com>', 'User03 <******@fabrikam.com>'
Subject = 'Sending the Attachment'
Body = @"
Dear $UserName, Welcome to our system! Here are your account details:
User name: $UserName Temporary
password: $TempPassword
Please log in and change your password immediately. Thank you, Your IT Team "@
SmtpServer = 'smtp.fabrikam.com'
}
Send-MailMessage @sendMailMessageSplat
For your reference: https://blog.netwrix.com/2017/03/30/create-ad-users-in-bulk-and-email-their-credentials-using-powershell/
Hopes this helps! Do let us know if you have any further queries.
Thanks,
Navya.