Learning PowerShell Through the Exchange 2010 Management Console

Home > Blogs > Exchange Server > Learning PowerShell Through the Exchange 2010 Management Console

Learning PowerShell Through the Exchange 2010 Management Console

Like This Blog 0 Mike Pfeiffer
Added by September 15, 2011

Just like Exchange 2007, the Exchange 2010 management console (EMC) is completely built on PowerShell. Everything you do in the graphical console, such as viewing the properties of a mailbox, or creating a distribution group, is being carried out in the background by PowerShell commands. Fortunately, EMC exposes most of this information, and you can use it as a tool to learn PowerShell.

The first thing you'll want to take a look at is the command log. Open EMC, highlight any item in the left hand column in the console tree, and select the View menu. Next, click on the option that says 'View Exchange Management Shell Log':

What you'll see next will be similar to the following screenshot:

In this example, we're viewing details for the latest execution of the New-Mailbox cmdlet. In addition, every other command that has been invoked since the EMC has been running is logged within this screen. Command logging is enabled by default, and will record the last 2,048 commands generated by EMC.

Another thing that is new in Exchange 2010 is the Command Button. You'll see this when viewing the properties of an object in EMC:

In this case I've modified the Title and Company properties for this mailbox. Notice that in icon the lower left hand corner, this is the EMC Command Button. It will be greyed out by default, but if you change something, before you hit 'Apply' or 'Ok', you can click on this button and preview the command that Exchange will use to make the change:

In addition to EMC Command Logging and the Command Button, you can still copy commands from the end of most wizards. For example, when creating a new mailbox you'll go through a wizard in EMC, and on the last screen, you'll be able to preview the command syntax, and click Ctrl+C to copy the command to your clipboard.

Videos You May Like

A Simple Introduction to Cisco CML2

0 3859 0

Mark Jacob, Cisco Instructor, presents an introduction to Cisco Modeling Labs 2.0 or CML2.0, an upgrade to Cisco’s VIRL Personal Edition. Mark demonstrates Terminal Emulator access to console, as well as console access from within the CML2.0 product. Hello, I’m Mark Jacob, a Cisco Instructor and Network Instructor at Interface Technical Training. I’ve been using … Continue reading A Simple Introduction to Cisco CML2

Cable Testers and How to Use them in Network Environments

0 713 1

This content is from our CompTIA Network + Video Certification Training Course. Start training today! In this video, CompTIA Network + instructor Rick Trader demonstrates how to use cable testers in network environments. Let’s look at some tools that we can use to test our different cables in our environment. Cable Testers Properly Wired Connectivity … Continue reading Cable Testers and How to Use them in Network Environments

Encrypting a USB Flash Drive in Windows 10

1 451 3

Hi, my name is Mike Danseglio. I’m an instructor here at Interface Technical Training. I want to talk a little bit about encrypting USB flash drives with Windows 10. The concept of protecting data when it’s on a USB flash drive is not a new concept. BitLocker 2-day instructor-led training is now available at Interface: … Continue reading Encrypting a USB Flash Drive in Windows 10

Write a Comment

Share your thoughts...

Please fill out the comment form below to post a reply.