Exchange Calendar permission
i give mailboxes 'owner' access other mailboxes, i.e. users should 'owner' of each other's calendar.
to test this, started trying give mailboxes access small list of users error message. code is:
****
$list = ("john.smith","alison.smith","bernice.smith","hilary.smith")
$allusers = get-mailbox | select -expandproperty alias
foreach ($user in $list) {add-mailboxfolderpermission $user":\calendar" -user $allusers -accessrights owner}
****
the error is:
cannot process argument transformation on parameter 'user'. cannot convert "system.collections.arraylist" value of
type "system.collections.arraylist" type "microsoft.exchange.management.storetasks.mailboxfolderuseridparameter".
+ categoryinfo : invaliddata: (:) [add-mailboxfolderpermission], parameterbindin...mationexception
+ fullyqualifiederrorid : parameterargumenttransformationerror,add-mailboxfolderpermission
i think problem can't use array -user part of command?
any appreciated.
Windows Server > Windows PowerShell
Comments
Post a Comment