Solved

how to query by exchange power shell

Posted on 2009-04-09
3
436 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
[X]
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
  • 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Last week, our Skyport webinar on “How to secure your Active Directory” (https://www.experts-exchange.com/videos/5810/Webinar-Is-Your-Active-Directory-as-Secure-as-You-Think.html?cid=Gene_Skyport) provided 218 attendees with a step-by-step guide for…
This article outlines the process to identify and resolve account lockout in an Active Directory environment.
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 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…

735 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