get the most out of powershell cmdlets -...

19
Get the Most Out of PowerShell CMDLETS

Upload: others

Post on 24-Jan-2020

17 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Get the Most Out of PowerShell CMDLETS - Meetupfiles.meetup.com/4323362/GSX_PowerShell_Cmdlets... · 2013-10-07 · Get the Most Out of PowerShell CMDLETS. 2 • Founded in 1996 •

Get the Most Out of PowerShell CMDLETS

Page 2: Get the Most Out of PowerShell CMDLETS - Meetupfiles.meetup.com/4323362/GSX_PowerShell_Cmdlets... · 2013-10-07 · Get the Most Out of PowerShell CMDLETS. 2 • Founded in 1996 •

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:

Page 3: Get the Most Out of PowerShell CMDLETS - Meetupfiles.meetup.com/4323362/GSX_PowerShell_Cmdlets... · 2013-10-07 · Get the Most Out of PowerShell CMDLETS. 2 • Founded in 1996 •

3

Page 4: Get the Most Out of PowerShell CMDLETS - Meetupfiles.meetup.com/4323362/GSX_PowerShell_Cmdlets... · 2013-10-07 · Get the Most Out of PowerShell CMDLETS. 2 • Founded in 1996 •

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

Page 5: Get the Most Out of PowerShell CMDLETS - Meetupfiles.meetup.com/4323362/GSX_PowerShell_Cmdlets... · 2013-10-07 · Get the Most Out of PowerShell CMDLETS. 2 • Founded in 1996 •

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

Page 6: Get the Most Out of PowerShell CMDLETS - Meetupfiles.meetup.com/4323362/GSX_PowerShell_Cmdlets... · 2013-10-07 · Get the Most Out of PowerShell CMDLETS. 2 • Founded in 1996 •

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

Page 7: Get the Most Out of PowerShell CMDLETS - Meetupfiles.meetup.com/4323362/GSX_PowerShell_Cmdlets... · 2013-10-07 · Get the Most Out of PowerShell CMDLETS. 2 • Founded in 1996 •

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

Page 8: Get the Most Out of PowerShell CMDLETS - Meetupfiles.meetup.com/4323362/GSX_PowerShell_Cmdlets... · 2013-10-07 · Get the Most Out of PowerShell CMDLETS. 2 • Founded in 1996 •

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

Page 9: Get the Most Out of PowerShell CMDLETS - Meetupfiles.meetup.com/4323362/GSX_PowerShell_Cmdlets... · 2013-10-07 · Get the Most Out of PowerShell CMDLETS. 2 • Founded in 1996 •

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

Page 10: Get the Most Out of PowerShell CMDLETS - Meetupfiles.meetup.com/4323362/GSX_PowerShell_Cmdlets... · 2013-10-07 · Get the Most Out of PowerShell CMDLETS. 2 • Founded in 1996 •

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

Page 11: Get the Most Out of PowerShell CMDLETS - Meetupfiles.meetup.com/4323362/GSX_PowerShell_Cmdlets... · 2013-10-07 · Get the Most Out of PowerShell CMDLETS. 2 • Founded in 1996 •

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

Page 12: Get the Most Out of PowerShell CMDLETS - Meetupfiles.meetup.com/4323362/GSX_PowerShell_Cmdlets... · 2013-10-07 · Get the Most Out of PowerShell CMDLETS. 2 • Founded in 1996 •

Maintainability

Automate and alert

Store the information

Trend availability and usage statistics

12GSX Solutions© 2012

Page 13: Get the Most Out of PowerShell CMDLETS - Meetupfiles.meetup.com/4323362/GSX_PowerShell_Cmdlets... · 2013-10-07 · Get the Most Out of PowerShell CMDLETS. 2 • Founded in 1996 •

Maintainability

Automate and alert

Store the information

Trend availability and usage statistics

13GSX Solutions© 2012

Page 14: Get the Most Out of PowerShell CMDLETS - Meetupfiles.meetup.com/4323362/GSX_PowerShell_Cmdlets... · 2013-10-07 · Get the Most Out of PowerShell CMDLETS. 2 • Founded in 1996 •

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

Page 15: Get the Most Out of PowerShell CMDLETS - Meetupfiles.meetup.com/4323362/GSX_PowerShell_Cmdlets... · 2013-10-07 · Get the Most Out of PowerShell CMDLETS. 2 • Founded in 1996 •

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

Page 16: Get the Most Out of PowerShell CMDLETS - Meetupfiles.meetup.com/4323362/GSX_PowerShell_Cmdlets... · 2013-10-07 · Get the Most Out of PowerShell CMDLETS. 2 • Founded in 1996 •

GSX Solutions© 2011 16

Questions?

Page 17: Get the Most Out of PowerShell CMDLETS - Meetupfiles.meetup.com/4323362/GSX_PowerShell_Cmdlets... · 2013-10-07 · Get the Most Out of PowerShell CMDLETS. 2 • Founded in 1996 •

GSX Solutions© 2011 17

Located in Cambridge, MA

Local Partners Wanted!

Schedule a Demo with GSX

Raffle

Page 18: Get the Most Out of PowerShell CMDLETS - Meetupfiles.meetup.com/4323362/GSX_PowerShell_Cmdlets... · 2013-10-07 · Get the Most Out of PowerShell CMDLETS. 2 • Founded in 1996 •

Gift Card to the Microsoft Store!

Page 19: Get the Most Out of PowerShell CMDLETS - Meetupfiles.meetup.com/4323362/GSX_PowerShell_Cmdlets... · 2013-10-07 · Get the Most Out of PowerShell CMDLETS. 2 • Founded in 1996 •

19GSX Solutions© 2012

GSX SolutionsNorth America

Cambridge & Buffalo, USA+1 310 765 [email protected]

GSX SolutionsHeadquarters

Geneva, Switzerland+41 22 735 82 [email protected]

@GSX_Solutions

Friend of GSX

GSX-Solutions Like page

Blog www.gsx.com/blog