Windows PowerShell

Guy recommends:
Free config generator

Solarwinds Config Generator

This CG will put you in charge of controlling changes to network routers and other SNMP devices.

Download your free Config Generator



PowerShell Scripting  - Exchange 2007 Verbs

PowerShell Scripting - Exchange 2007 Verbs

The best thing you can do to script Exchange 2007 with PowerShell is to get the QAD snap-in.  This is a useful list of the main verbs for manipulating Exchange 2007 via Microsoft's new command shell.  Look out for pairs e.g. Enable with Disable, Get with Set.

To investigate try Get-help s* where 's' is the first letter of the command that you are researching.  * is the usual wildcard.  I have discovered that exchange specific commands begin with a capital e.g. Get-Mailbox but Get-Eventlog.

Verb Explanation
Disable Disable commands set the specified Exchange Server 2007 object's Enabled status to $false. This prevents it from processing data even though the object exists.
Enable Enable commands set the specified Exchange Server 2007 object's Enabled status to $true. This allows it to process data.
Get Get commands retrieve information about a particular Exchange Server 2007 object.

Note   Most Get commands only return summary information when you run them. To tell the Get command to return verbose information when you run a command, pipe the command to the Format‑List command.

Install Install commands install a new object or feature on an Exchange Server 2007 server.
Move Move commands relocate the specified Exchange Server 2007 object from one container or server to another.
New New commands create Exchange Server 2007 objects e.g. Mailcontact
Remove Remove commands delete the specified Exchange Server 2007 object.
Set Set commands modify the properties of an existing Exchange Server 2007 object.
Test Test commands test specific Exchange Server 2007 components and provide log files for examination.
Uninstall Uninstall commands remove an object or feature from an Exchange Server 2007 server.
  ˚

See more Microsoft PowerShell tutorials

PowerShell Tutorials  • Methods  • Cmdlets  • PS Snapin  • Profile.ps1  • Exchange 2007

Command & Expression Mode  • PowerShell pipeline (|)  • PowerShell 'where'  • PowerShell 'Sort'

If you see an error of any kind, do let me know.  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.

 *


Google

WebThis Site

Guy Recommends: WMI Monitor and Its Free!Solarwinds WMI Monitor

Windows Management Instrumentation (WMI) is one of the hidden treasures of Microsoft operating systems.

 Fortunately, Solarwinds have created the WMI Monitor so that you can examine these gems of performance information for free.  Take the guess work out of which WMI counters to use for applications like Microsoft Active Directory, SQL or Exchange Server.

Download your free copy of WMI Monitor

 

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

Please report a broken link, or an error.