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.

hi,

you'll need loop inside loop , apply setting per mailbox each user.




Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Group Policy Event ID 1058 Error Code 1326 (The user name or password is incorrect)

Suspicious event log Event ID: 4905

DCOM received error "2147746132" from...