I cover PowerShell
basics elsewhere and I am assuming that you have a working knowledge of the
cmdlets and how to research parameters. Incidentally, I use PowerShell
2.0's graphical ISE, rather than the command line version.
Before you run the Test-SystemHealth command make sure that your logon
account has been delegated the Exchange Server Administrator role and is a
member of the local Administrators group for the target server.
# Simple PowerShell Example: Test-SystemHealth
Note 1: You can change the credentials with
the parameters -AdCredentials or -ExchangeCredentials.
Example Results: ServicesRunning
Mailbox Role e.g. MSExchangeSA
Client Access e.g. MSExchangeADTopology
Just examples, the real results list all the Exchange Services and show
which are running and which are not.
Here is a
free tool to monitor your Exchange Server. Download and
install the utility, then inspect your mail queues, monitor the Exchange
server's memory, confirm there is enough disk space and check the CPU
utilization. This is the real deal - there is no catch. SolarWinds
provides this fully-functioning product for free, as part of their commitment to
supporting the network management community.
In the case of Windows 7 and Server
2008, you don't need to download any extra files, just 'Add Feature' Windows PowerShell.
However, for older operating systems, installing can be confusing because
there are different versions of PowerShell for XP, Windows Server 2003 and
Vista. For such legacy systems only, you need to
download PowerShell from Microsoft's site.
Once you have installed PowerShell 2.0, I recommend choosing the
ISE (Integrated Scripting Engine) version, it
will save you buying a text editor.
»
Summary of PowerShell Exchange Test-SystemHealth
Here is an interesting PowerShell cmdlet to check that the required
services are actually running on your Exchange 2010 server.
If you like this page then please share it with your friends
Please email me if you have a better script examples. Also please report any factual mistakes, grammatical errors or broken links, I will be happy to correct the fault.
Windows Management Instrumentation (WMI) is one of the hidden
treasures of Microsoft operating systems.
Fortunately, SolarWinds
have created the
Free WMI Monitor so that you can actually see and understand these gems of
performance information. Take the guess work out of which
WMI counters to use for applications like Microsoft Active Directory,
SQL or Exchange Server.