[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 446
  • Last Modified:

how to query by exchange power shell

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
diegomirner
Asked:
diegomirner
  • 2
2 Solutions
 
tigermattCommented:

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
 
florin_sCommented:
Hi,

here are also some exchange scripts:

http://exchangepedia.com/blog/labels/Scripts.html
0
 
tigermattCommented:
Hey,

Any reason for the 'B' grade?
0

Featured Post

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now