Restrict IMAP access
I understand you can run: "Set-CASMailbox -Identity "JOHN SMITH" -IMAPEnabled $True" to allow a particual user access to thier mailbox by IMAP. However all of our accounts are allowed IMAP access. Is there anyway to do a whilecard (Set-CASMailbox -Identity "*" -IMAPEnabled $false) to turn all the accounts off and then run the aboveon the accounts I want to allow access ? Thanks
October 19th, 2007 12:09pm

You need to get the list of all CasMailboxes and then perform the operation Get-CasMailbox will give you all the CasMailboxes | will pipe to the next command for every CasMailbox Set-CasMailbox will run for every CasMailbox because you piped it from Get-CasMailbox Get-CasMailbox | Set-CasMailbox -IMAPEnabled $false Deli
Free Windows Admin Tool Kit Click here and download it now
October 19th, 2007 6:14pm

That worked a treat, Thanks very much for your help.
October 22nd, 2007 12:28pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics