Quantcast
Channel: /r/powershell – How to Code .NET
Viewing all articles
Browse latest Browse all 8793

Cannot bind Parameter ‘GrantSendOnBehalfTo’

$
0
0

Hi guys.

I’m trying to create a script where i can add and remove multiple people from the Send On Behalf permission on an exchange mailbox. However I’m getting the below error. I’m kinda new to this and learning as i go along so any assistance is appreciated.

[PS] C:Windowssystem32>set-mailbox MAILBOX -grantsendonbehalfto @{remove="user1","user2"} Set-Mailbox: Cannot bind parameter 'GrantSendOnBehalfTo'. Cannot convert the "System.Collections.Hashtable" value of type "System.Collections.Hastable" to type "Microsoft.Exchange.Configuration.Tasks.MailboxOrMailUserIDParameter". At line:1 char:41 + Set-Mailbox MAILBOX -grantsendonbehalfto <<<< @{remove="user1","user2"} + CatagoryInfo : InvalidArgument: (:) [Set-Mailbox], ParameterBindingException + FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.Exchange.Management.RecipiantTasks.SetMailbox 

Any ideas? Thanks in advance.

submitted by /u/Dualdottv
[link] [comments]

The post Cannot bind Parameter ‘GrantSendOnBehalfTo’ appeared first on How to Code .NET.


Viewing all articles
Browse latest Browse all 8793

Trending Articles