CRT
CRT copied to clipboard
Argument Errors on Delegates/SendAs/SendonBehalf for accounts with Primary STMP address with ' in it
[2021-06-02 00:49:21Z] - Retrieving Mailbox Delegates where 'Send As' or 'SendOnBehalf' permission is granted
Press any key to skip this module...
Running module...
This make take awhile; please be patient...
Cannot validate argument on parameter 'PrimarySmtpAddress'. **The argument "ray.pare'@domain.com" does not match the "[a-zA-Z0-9!#$%*+-/?^_.{|}~]+@([a-zA-Z0-9\-]+\.)+[a-zA-Z]{2,4}" pattern**. Supply an argument that matches "[a-zA-Z0-9!#$%*+\-/?^_.{|}~]+@([a-zA-Z0-9-]+.)+[a-zA-Z]{2,4}" and try the command again.
At D:\temp\Get-CRTReport.ps1:1154 char:13
-
throw $_.Exception.Message -
~~~~~~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : OperationStopped: (Cannot validate... command again.:String) [], RuntimeException
- FullyQualifiedErrorId : Cannot validate argument on parameter 'PrimarySmtpAddress'. The argument "ray.pare'@domain.com" does not match the "[a-zA-Z0-9!#$%*+-/?^_
.{|}~]+@([a-zA-Z0-9\-]+\.)+[a-zA-Z]{2,4}" pattern. Supply an argument that matches "[a-z A-Z0-9!#$%*+\-/?^_.{|}~]+@([a-zA-Z0-9-]+.)+[a-zA-Z]{2,4}" and try the command again.