Issue
This article contains some example PowerShell scripts that can be used during Stage 2 workflow processing
Solution
Send an email to a user when their migration is complete:
Add the following script:
Param($smtp,$emailSendAccount,$userName,$userEmail)
$subject = "Notification: $userName - Migration of your data COMPLETED!"
$body = "Dear $userName, "
$body += "
migration of your mailbox successfully finished.
"$body += "
This message has been automatically generated by QUADROtech Archive Shuttle system, click here to check QUADROtech's website.
"Send-MailMessage –From $emailSendAccount –To $userEmail –Subject $subject –Body $body -BodyAsHtml -SmtpServer $smtp -Port 25
Add the following parameters
smtp
– any valid SMTP server inside the organizationemailSendAccount
– an email address that the service account running the PowerShell Execution module has access touserName
– Token: {UserFirstName}userEmail
– Token: {PrimarySMTPAddress}
It is advised to test the Send-MailMessage command line via PowerShell to refine the parameters that might be required by your SMTP server and to ensure that the message looks good in an email client.
Finally, the script execution has to be added to your chosen workflow.
The tokens/variables which can be used are described here .
© 2025 Quest Software Inc. ALL RIGHTS RESERVED. 使用条款 隐私 Cookie Preference Center