[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Exchange Shell

Posted on 2015-02-05
1
Medium Priority
?
69 Views
Last Modified: 2015-02-05
I have a spread sheet of about 100 users, and on the spread sheet I have the email addresses of the user which corresponds to their principle name. I would like to run a script in exchange shell to import these users into a variable and get their samAccountname, from the email address. I would like this exported to a csv file. Anyone has any idea on how to get this accomplished. Thanks in advance
0
Comment
Question by:timgreen7077
1 Comment
 

Accepted Solution

by:
timgreen7077 earned 0 total points
ID: 40592820
Disregard question, I manage to get this script to work:

$userlist = Import-Csv c:\excel\test.csv
foreach ($user in $userlist) {
$perms += @(get-mailbox -Identity $user.emailaddress)
}
$perms | select displayname, samaccountname | export-csv c:\excel\respond.csv
0

Featured Post

A Cyber Security RX to Protect Your Organization

Join us on December 13th for a webinar to learn how medical providers can defend against malware with a cyber security "Rx" that supports a healthy technology adoption plan for every healthcare organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Eseutil Hard Recovery is part of exchange tool and ensures Exchange mailbox data recovery when mailbox gets corrupt due to some problem on Exchange server.
There can be many situations demanding the conversion of Outlook OST files to PST format and as such, there is no shortage of automated tools to perform this conversion. However, what makes Stellar OST to PST converter stand above the rest? Let us e…
To show how to create a transport rule 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 Mail Flow >> Rules tab.:  To cr…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
Suggested Courses

830 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