Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Exchange Shell

Posted on 2015-02-05
1
62 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

856 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