I have a hosted exchange 2010 and I am trying to setup the Send-As permission.
I am following http://technet.microsoft.com/en-us/library/bb676368.aspx which basically describes the commands for achieving this.
I have user account aaa and bbb
[PS] C:\Windows\system32get-mailbox -organization myorg -identity "aaa"
Name Alias ServerName ProhibitSendQuota
---- ----- ---------- -----------------
aaa aaa mx1 4.95 GB (5,315,022,848 bytes)
[PS] C:\Windows\system32get-mailbox -organization myorg-identity "bbb"
Name Alias ServerName ProhibitSendQuota
---- ----- ---------- -----------------
bbb bbb mx1 4.95 GB (5,315,022,848 bytes)
Now, when I use the command below to give bbb permission to send-as aaa, I get the following error:
[PS] C:\Windows\system32get-mailbox -organization myorg -identity "aaa" | Add-ADPermission -Extended Rights "Send As" -user "bbb"
mx1/Microsoft Exchange Hosted Organizations/myorg/aaa wasn't found.
Please make sure you've typed it correctly.
+ CategoryInfo : InvalidArgument: (:) [Add-ADPermission], ManagementObjectNotFoundException
+ FullyQualifiedErrorId : D2FD338,Microsoft.Exchange.Management.RecipientTasks.AddADPermission
The error message that 'aaa' was not found does not make sense because i just retrieved the mailbox in the previous commands.
I have tried using email addresses instead of alias but it does not work.