CRT icon indicating copy to clipboard operation
CRT copied to clipboard

Cannot validate argument on parameter 'PrimarySmtpAddress'. The argument "" does not match the "[a-zA-Z0-9!#$%*+\-/?^_`.{|}~]+@([a-zA-Z0-9\-]+\.)+[a-zA-Z]{2,4}" pattern.

Open crtoversystematic opened this issue 4 years ago • 3 comments

[2021-01-05 07:51:30Z] - Retrieving Mailbox Delegates where 'Full Access' permission is granted This make take awhile; please be patient... [!] We ran into an error retrieving Mailbox Delegates where 'FullAccess' permission is granted. If a report is generated, it may not be complete. Try using the following command to obtain this report manually: Get-EXOMailbox -ResultSize Unlimited | Get-EXOMailboxPermission | Where-Object { ($.AccessRights -eq "FullAccess") -and ($.IsInherited -eq $false) -and -not ($.User -like "NT AUTHORITY\SELF")} | Export-Csv "FullAccessPerms.csv" -NoTypeInformation [2021-01-05 08:01:47Z] - Retrieving Mailbox Delegates where 'Any' permissions are granted This make take awhile; please be patient... [!] We ran into an error retrieving Mailbox Delegates where 'Any' permissions are granted. If a report is generated, it may not be complete. Try using the following command to obtain this report manually: Get-EXOMailbox -ResultSize Unlimited | Get-EXOMailboxPermission | Where-Object { ($.IsInherited -eq $false) -and -not ($.User -like "NT AUTHORITY\SELF")} | Export-Csv "AnyAssignedPerms.csv" -NoTypeInformation [2021-01-05 08:04:55Z] - Retrieving Mailbox Delegates where 'Send As' or 'SendOnBehalf' permission is granted This make take awhile; please be patient... Cannot validate argument on parameter 'PrimarySmtpAddress'. The argument "" 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}" an d try the command again. At Redacted\CrowdStrike_Reporting_Tool_for_Azure\CRT-main\Get-CRTReport.ps1:1081 char:13

  •         throw $_.Exception.Message
    
  •         ~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : OperationStopped: (Cannot validate... command again.:String) [], RuntimeException
    • FullyQualifiedErrorId : Cannot validate argument on parameter 'PrimarySmtpAddress'. The argument "" 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-z A-Z0-9-]+.)+[a-zA-Z]{2,4}" and try the command again.

crtoversystematic avatar Jan 05 '21 08:01 crtoversystematic

@crtoversystematic thanks for the feedback. Have you tried running the individual commands themselves, and does that work for you?

csdr4 avatar Jan 08 '21 15:01 csdr4

I tried, same output as before..

Regards

-------- Original Message -------- On 8 Jan 2021, 16:43, [email protected] via SimpleLogin wrote:

@crtoversystematic thanks for the feedback. Have you tried running the individual commands themselves, and does that work for you?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

crtoversystematic avatar Jan 08 '21 17:01 crtoversystematic

@crtoversystematic how long is the script/command running before erroring out for you?

csdr4 avatar Jan 14 '21 18:01 csdr4