I'm trying to run a PS script to setup users connected accounts on Exchange , i'm connected to PS with ContosoAdmin:
New-ImapSubscription -Name "My IMAP" -Mailbox mailbox@domain.com -EmailAddressuser1@contoso.com -IncomingUserName "contoso\user1" -IncomingPassword (ConvertTo-SecureString -String 'Pa$$word' -AsPlainText -Force) -IncomingServer imap.contoso.com -IncomingSecurity None -IncomingPort 143
ContosoAdmin has 'Recipient Management' and 'Organization Management' roles assigned
the error I get is cant find user or group (it is the valid user mailbox). If I remove the '-Mailbox' it creates the Connected Account in ContosoAdmin account.
I need to run this for 40 user as a batch
It would appear that ConosoAdmin doesn't have permission to create the Connected Account in User1
Tx
Mark
devlinfisher*