How to run the the impersonation permission grant command for multiple users
I have run below command earlier to grant the impersonation for a user called user1 get-mailbox -identity user1 | add-adpermission -user domainname\service application user -ExtendedRights ms-Exch-EPI-May-Impersonate Now I want to run this command for multiple users like user2, user3, user 4 together. How should I run the command. This is for Exchange Server 2007 SP2 Abhijeet M. Mohite
September 7th, 2011 4:01am

Put the users into a csv file then run import-csv and pipe that into the command. Create CSV file like below: column1 user jdoe jsmith [PS] C:\temp>import-csv jmigration.txt | foreach-object{get-mailbox -identity $_.user | add-adpermission -user domain\serviceaccount -ExtendedRights ms-Exch-EPI-May-Impersonate}James Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
September 7th, 2011 10:23am

Short comment: For an CRM application we tested impersonation by adding some 60 users to a security group. This did not work and ended up with the same method James describes.MCTS: Messaging | MCSE: S+M
September 7th, 2011 4:51pm

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

Other recent topics Other recent topics