Solved

need assistance with a powershell or quest ad cmdlets script

Posted on 2013-11-15
1
299 Views
Last Modified: 2013-11-15
can someone assist with this script.

I have approx. 200 full access permissions I need to assign.

manually the script would be:
Add-MailboxPermission -Identity "sharedmailbox" -User john.smith -AccessRights Fullaccess -InheritanceType all -automapping $false

Open in new window


how can I reference an import CSV and use variables to automate this.

csv would be

source                                  user
sharedmbx1                        john.smith
sharedmbx2                        sam.jones
sharedmbx3                        john.jones
....


many thanks

S.
0
Comment
Question by:siber1
1 Comment
 

Accepted Solution

by:
siber1 earned 0 total points
Comment Utility
figured it out myself: [in case anyone could use it]

$csv = import-csv c:\test.csv
foreach ($line in $csv) 
{    
Add-MailboxPermission -Identity $line.target -User $line.user -AccessRights Fullaccess -InheritanceType all -automapping $false
    }

Open in new window

0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…
This video discusses moving either the default database or any database to a new volume.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now