Solved

how to query by exchange power shell

Posted on 2009-04-09
3
430 Views
Last Modified: 2012-05-06
Dear experts,

Can you help me to find good docs to get examples about how query ad and exchange if for ex I want to know all distrubution list, email alaises a user belongs to, and so on.
Thanks i nadvance
0
Comment
Question by:diegomirner
  • 2
3 Comments
 
LVL 58

Accepted Solution

by:
tigermatt earned 250 total points
ID: 24105077

The first place I would look is in Powershell itself. Run the 'get-excommand' tool. That will print out all the Exchange-related powershell commands. Most of them are common-sense though, as it follows a standardised naming scheme.

You can then use the command get-help (command) to list the help information for any command. For example, get-help get-mailbox will list the help and usage instrutions for the get-mailbox command.

You can use get-mailbox -Identity <username> for reading out the email aliases (as well as other information about a user). get-distributiongroup will print out all distribution groups in the organization.

If you really want to get into Powershell properly, you might want to start with http://blogs.technet.com/askperf/archive/2007/07/03/getting-started-with-windows-powershell.aspx to learn the basics, moving on at the top end to http://www.amazon.com/Professional-Windows-PowerShell-Exchange-Programmer/dp/0470226447 for learning it a little more professionally.

-Matt
0
 
LVL 12

Assisted Solution

by:florin_s
florin_s earned 250 total points
ID: 24105136
Hi,

here are also some exchange scripts:

http://exchangepedia.com/blog/labels/Scripts.html
0
 
LVL 58

Expert Comment

by:tigermatt
ID: 24307873
Hey,

Any reason for the 'B' grade?
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

789 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