get the most out of powershell cmdlets -...

Post on 24-Jan-2020

17 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Get the Most Out of PowerShell CMDLETS

2

• Founded in 1996• Offices in Switzerland, France, UK, USA, China• Specialist in collaboration and messaging environments• One product to monitor Microsoft Exchange, SharePoint, BES & Domino

environments

GSX Solutions:

3

Adam Chadderdon

US Channel Manager at GSX Solutions

Arnaud Buonaccorsi [http://buenoflex.com]

Microsoft Specialist at GSX Solutions

Jean-Francois Piot

VP Product Management at GSX Solutions

4GSX Solutions© 2012

Obtain Information and configure your environment with

PowerShell

Monitor and troubleshoot your environment

Report on usage of your environment

Problems with the use of PowerShell

How GSX Monitor and Analyzer can help you ?

5GSX Solutions© 2012

Two Ways:

Exchange Management Shell

Easiest way to start

Launch: « Exchange Management Shell »

Remote PowerShell

Creating a PSSession: $session = New-PSSession –computerName <fqdn of machine> -credential Get-Credential –

authentication Kerberos

Connecting to Exchange remotely: $session = New-PSSession -credential Get-Credential –authentication Kerberos –connectionURI

http://<FQDN of Exc server>/PowerShell –configurationName Microsoft.Exchange

6GSX Solutions© 2012

First Actions:

Import the session:

Import-PSSession $session

Enter the Session

Enter-PSSession $session

Invoke commands on the remote computer

Invoke-Command { any cmdlet here} –session $session

7GSX Solutions© 2012

Get Exchange Server

Retrieve all the servers in the current organization with name, site, roles,

version, AD server, etc.

Get Mailbox

Retrieve attributes and objects for a mailbox

Get ActiveSyncDevice

Retrieve the list of devices with identification, configurations, status

information

Get PublicFolderDatabase

Return specific database properties (including backup and mount status

information)

Get MailboxDatabase

Retrieve one or more Mailbox Database objects8GSX Solutions© 2012

Autodiscover Test

Test-OutlookWebservices

Mailbox Servers

Get-MailboxDatabaseCopyStatus

Test-MapiConnectivity

Hub Transport

Get-Queue

Client Access Servers

Test-OwaConnectivity

Test-PopConnectivity

Test-ImapConnectivity

Test-ActiveSyncConnectivity

9GSX Solutions© 2012

Test OWAConnectivity

Definition

Test All Microsoft Exchange virtual directories

Real Test

Test ActiveSync Connectivity

Definition

Makes a real synchronization and a Direct Push test

Real Test

10GSX Solutions© 2012

Get-Mailbox

Definition: retrieve attributes and objects for mailbox

Test

Get-MailboxStatistics

Definition: Obtain information about mailbox (size, number of

messages, last time accessed, etc…)

Test

Get-LogonStatistics

Definition: Retrieve logon information about current active sessions

Test

11GSX Solutions© 2012

Maintainability

Automate and alert

Store the information

Trend availability and usage statistics

12GSX Solutions© 2012

Maintainability

Automate and alert

Store the information

Trend availability and usage statistics

13GSX Solutions© 2012

14GSX Solutions© 2012

Scanning Engine: where to automate tests?

Alert System: how to be alerted?

Mailbox, CAS, Hub, CAS Array, DAG PowerShell tests

PowerShell autodiscovery of the environment

End-to-End tests

Storing Statistics

Trending PowerShell statistics

15GSX Solutions© 2012

GSX automates the PowerShell tests

GSX automates the alert system

GSX calculates and reports on the availability on each role

Mailbox, CAS, Hub, CAS Array, DAG with PowerShell tests

GSX draws the PowerShell autodiscovery of the environment

GSX adds others End-to-End tests such as Mail Routing

GSX enables the storage of PowerShell statistics for

troubleshoot and trending capacity

GSX Solutions© 2011 16

Questions?

GSX Solutions© 2011 17

Located in Cambridge, MA

Local Partners Wanted!

Schedule a Demo with GSX

Raffle

Gift Card to the Microsoft Store!

19GSX Solutions© 2012

GSX SolutionsNorth America

Cambridge & Buffalo, USA+1 310 765 4139sales@gsx.com

GSX SolutionsHeadquarters

Geneva, Switzerland+41 22 735 82 40sales@gsx.com

@GSX_Solutions

Friend of GSX

GSX-Solutions Like page

Blog www.gsx.com/blog

top related