Solved

how to query by exchange power shell

Posted on 2009-04-09
3
405 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
Comment Utility

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
Comment Utility
Hi,

here are also some exchange scripts:

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

Expert Comment

by:tigermatt
Comment Utility
Hey,

Any reason for the 'B' grade?
0

Featured Post

The problems with reply email signatures

Do you wish that you could place an email signature under a reply? Well, unfortunately, you can't. That great Exchange/Office 365 signature you've created will just appear at the bottom of an email chain. What a pain! Is there really no way to solve this? Well, there might be...

Join & Write a Comment

Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
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

744 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

15 Experts available now in Live!

Get 1:1 Help Now