Thanks for your response. piping to fl is really helpful.
I cannot find a way to grants rights to all mailboxes in Exchange 2007. I am specially interested in granting the "Receive As" right to a Windows Service account for all mailboxes so that the information there can be retrieved and indexed by a search engine.
"add-mailboxpermission myserviceaccount -user A -accessrights receiveas", the way to grant "Receive As" according Beta 2 help, simply does not work. Also this command can handle only one mailbox per execution.
"add-adpermission myserviceaccount -user A -extendedrights receive-as" seems to work as I get an entry in get-appermission for the "receive-as". Again, this command can handle only one mailbox per execution. So a more complex script is required to loop all mailboxes and grant the "receive as" right one by one. Is there a tutorial about this new monad scripting stuff?
Thanks again.