Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exchange 2007 powershell script help

Status
Not open for further replies.

andrewjamesb

Technical User
May 22, 2012
9
GB
Hi

Hi

I would be very grateful if someone could help me complete this script i've tried to create below. I just want to grant multiple users full access and send as permissions to several different mailboxes in exchange 2007.

$data = import-csv C:\Users\admin-me\Desktop\scripts\exchange\grantfullmailboxpermis sions\mailboxes.csv
foreach ($line in $data) {Add-MailboxPermission $line.MailboxName $line.userPrincipalName -AccessRights FullAccess -InheritanceType all}

My mailboxes csv file includes two columns one for the actual MailboxName and the other for users id (userPrincipalName)

Any help would be gratefully received

$data = import-csv "C:\Users\admin-me\Desktop\scripts\exchange\grantfullmailboxpermissions\mailboxes.csv"

foreach ($line in $data) {Add-MailboxPermission -Identity $line.MailboxName -User $line.userPrincipalName -AccessRights FullAccess -InheritanceType all}

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top