@Adrian Narvaez
You could use the script below:
$ADUsers = Import-csv C:\temp\users.csv
foreach ($User in $ADUsers){
$JName = "BH - " + $User.FirstName + " " + $User.LastName
New-JournalRule -Name $JName -Recipient $User.Address -JournalEmailAddress $user.journaladdress -Scope External -Enabled $True
}
Here is the format of the source file (You need to change it to .CSV).
Please note: The JournalEmailAddress can only be a mail user, a mail contact or an external address.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.