Windows PowerShell


Microsoft's PowerShell in Exchange Server 2007

Introduction to PowerShell in Exchange Server 2007

The long-term reason for learning PowerShell is to configure Exchange 2007 and Longhorn.  However, you can get started with PowerShell right now.  I suggest that you begin by using PowerShell instead of cmd.  My point is that all the commands such as ping, ipconfig and netstat perform in PowerShell just as they do in the cmd.exe shell.  The benefit is that you will get used to the new PS> interface and may even risk a few PowerShell commands.

To prepare for administering the successor to Exchange 2003, I recommend that you download PowerShell and start experimenting with verb-noun instructions at the PS > prompt.  Feel free to copy or modify my examples, better still, create your own scripts.

PowerShell Topics

 ♣

PowerShell and Exchange 2007 Server

Let me be clear, Exchange 2007 has a GUI for its System Manager, however, for a repetitive task or a clever configuration, Microsoft is saying that you need to learn PowerShell.

Microsoft have redesigned Exchange Server 2007 from scratch.  What their research found is that in Exchange 2003, because of the deep nesting, it's difficult to find settings in the System Manager.  Therefore, Microsoft reason, it will be quicker to configure settings with a few crisp instructions from the PowerShell command line, than endlessly searching through menus in the GUI. 

Microsoft's argument goes on to propose that scripting can achieve complex configurations that are not possible from the GUI menu.  For example, I saw a PowerShell script that not only created users and their mailboxes, but also load-balanced the mailboxes between storage groups.  Typical Microsoft, you will be able to get the best of both worlds, begin with the GUI, but press an option to create PowerShell scripts, which you can then modify with a text editor.

PowerShell Example 1 - Get Mailbox Exchange Server 2007

Here is a real life task to set a users mailbox quota.  Naturally, you to have Exchange Server 2007 installed before running this PowerShell command:

# PowerShell command to retrieve a user's mailbox.
get-Mailbox "yourDomain\yourVictim"

# PowerShell command to set the quota
get-Mailbox "yourDom\yourUser" | set-Mailbox -ProhibitSendQuota 100MB

PowerShell Example 2 - List Roles in Exchange Server 2007

# PowerShell command to list Exchange 2007 Server roles
get-ExchangeServer -status

Here are more instructions for using PowerShell in Exchange 2007

Guy Recommends: SolarWinds Engineer's Toolset v10Engineer's Toolset v10

The Engineer's Toolset v10 provides a comprehensive console of utilities for troubleshooting computer problems.  Guy says it helps me monitor what's occurring on the network, and the tools teaches me more about how the system literally operates.

There are so many good gadgets, it's like having free rein of a sweetshop. Thankfully the utilities are displayed logically: monitoring, discovery, diagnostic, and Cisco tools.  Download your copy of the Engineer's Toolset v 10

Summary of PowerShell and Exchange 2007

PowerShell is a potent new scripting language for Exchange Server 2007  servers.  Moreover, one day PowerShell will be Microsoft's standard scripting shell.  One killer reason for learning PowerShell is that you can perform tasks that are not possible through the Exchange System Manager GUI.

See more Windows PowerShell real life tasks

PowerShell Home  • Real life tasks  • IpConfig  • Exchange  • Com objects  • Services  • Syntax

Please write in if you see errors of any kind.  Please report any factual mistakes, grammatical errors or broken links, I will be happy to not only to correct the fault, but also to give you credit.

Download my ebook:Getting Started with PowerShell
Getting Started with PowerShell - only $9.25

You get 36 topics organized into these 3 sections:
   1) Getting Started
   2) Real-life tasks
   3) Examples of Syntax.

In addition to the ebook, you get a PDF version of this  Introduction to PowerShell ebook  It runs to 120 pages of A4.

 *


Google

Web  This website

Review of Orion NPMGuy Recommends: Orion's NPM - Network Performance Monitor

Orion's performance monitor is designed for detecting network outages. A network-centric view make it easy to see what's working, and what needs your attention.

This utility guides you through troubleshooting by indicating whether the root cause is faulty equipment or resource overload.

Download a free trial of the Network Performance Monitor

 

Home Copyright © 1999-2009 Computer Performance LTD All rights reserved

Please report a broken link, or an error.