Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Argument Errors on Delegates/SendAs/SendonBehalf for accounts with Primary STMP address with ' in it #32

Open
jreed5 opened this issue Jun 2, 2021 · 0 comments

Comments

@jreed5
Copy link

jreed5 commented Jun 2, 2021

[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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant