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

DCOM received error "2147746132" from...

DFSR RPC replication errors 5014 1726 with large files over VPN

ADFS 3.0 Event ID 4625 | An Error occurred During Logon | Status: 0xC000035B