Jean-Francois PiotVP Product Management at GSX Solutions Olivier RaynautMicrosoft Specialist at GSX Solutions             ...
GSX Solutions at a glance     Created in 1996     Headquarter in Switzerland     Offices in the USA, UK and France     Spe...
4
IntroductionStarting with PowerShell: Must Have KnowledgeHow to use PowerShell?Get Information and configure your environm...
Designed as a new approach to command linemanagement, released in 2006Built upon the .Net frameworkUse cmdlets for managem...
Pre-installed on Windows 7 and Windows Server 2008 R2but can be added to previous versions by downloadingand installing th...
Cmdlet:There are only two cmdlets you need to know:   – Get-Help   – Get-CommandFor all the common cmdlets there are alias...
Two Ways: Exchange Management Shell    Easiest way to start with    Launch : « Exchange Management Shell » Remote PowerShe...
First actions:  Import the session:     Import-PSSession $session  Enter the session     Enter-PSSession $session  Invoke ...
Get Exchange Server          Retrieve all the server of the current organization with name, site, roles,version, AD server...
Autodiscover Test   Test-OutlookWebservicesMailbox Servers   Get-MailboxDatabaseCopyStatus   Test-MapiConnectivityHub Tran...
Test OWAConnectivity  Definition    Test All Microsoft Exchange virtual directories  Real TestTest ActiveSync Connectivity...
Get-Mailbox   Definition: retrieve attributes and objects for mailbox   TestGet-MailboxStatistics   Definition: Obtain inf...
MaintainabilityAutomate and alertStore the informationTrend availability and usage statistics                        GSX S...
MaintainabilityAutomate and alertStore the informationTrend availability and usage statistics                        GSX S...
Scanning engine: where to automate tests?Alert system: how to be alerted?Mailbox, CAS, Hub, CAS Array, DAG PowerShell test...
GSX automates the PowerShell testsGSX automates the alert systemGSX calculates and reports on the availability on each rol...
@GSX_Solutions                                            Friend of GSX                                            GSX-Sol...
GSX Webinar PowerShell Cmdlets Automation
Upcoming SlideShare
Loading in...5
×

GSX Webinar PowerShell Cmdlets Automation

499

Published on


Using PowerShell scripting to monitor an Exchange environment can be a daunting task for Exchange administrators when they do not know how to automate the main cmdlets. Follow this link to access the podcast (full video and audio of the presentation): http://www.gsx.com/GSX-Podcast-Webinar-PowerShell-Cmdlets-Automation/

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
499
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

GSX Webinar PowerShell Cmdlets Automation

  1. 1. Jean-Francois PiotVP Product Management at GSX Solutions Olivier RaynautMicrosoft Specialist at GSX Solutions GSX Solutions© 2012 2
  2. 2. GSX Solutions at a glance Created in 1996 Headquarter in Switzerland Offices in the USA, UK and France Specialized in Messaging and Collaboration Environment supervision 3
  3. 3. 4
  4. 4. IntroductionStarting with PowerShell: Must Have KnowledgeHow to use PowerShell?Get Information and configure your environment withPowerShellMonitor and troubleshoot your environmentReport on usage of your environmentProblem with the use of PowerShellHow GSX Monitor and Analyzer can help you ? GSX Solutions© 2012 5
  5. 5. Designed as a new approach to command linemanagement, released in 2006Built upon the .Net frameworkUse cmdlets for management, queries and tasksAble to combine cmdlets to perform more complex tasksAble to ‘Pipe’ output from one cmdlet to the input ofanotherCan be used to manage servers and applications remotely GSX Solutions© 2012 6
  6. 6. Pre-installed on Windows 7 and Windows Server 2008 R2but can be added to previous versions by downloadingand installing the Windows Management FrameworkSnappinCmdlet to find his way: Syntax: “verb-resource” New Get Remove Set GSX Solutions© 2012 7
  7. 7. Cmdlet:There are only two cmdlets you need to know: – Get-Help – Get-CommandFor all the common cmdlets there are aliases that allow you tocall them: – Get-Help • man • help• Get-Command • gcmAdvice: Parameters for Get-Help: - full: full help - online: TechNet article on the cmdlets. GSX Solutions© 2012 8
  8. 8. Two Ways: Exchange Management Shell Easiest way to start with Launch : « Exchange Management Shell » Remote PowerShell Creating a PSSession: $session = New-PSSession –computerName <fqdn of machine> -credential Get-Credential –authentication Kerberos Connecting to Exchange directly: $session = New-PSSession - credential Get-Credential –authentication Kerberos –connectionURI http://<FQDN of Exc server>/PowerShell –configurationName Microsoft.Exchange GSX Solutions© 2012 9
  9. 9. 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 GSX Solutions© 2012 10
  10. 10. Get Exchange Server Retrieve all the server of the current organization with name, site, roles,version, AD server, etc. Get Mailbox Retrieve attributes and object 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 objects GSX Solutions© 2012 11
  11. 11. Autodiscover Test Test-OutlookWebservicesMailbox Servers Get-MailboxDatabaseCopyStatus Test-MapiConnectivityHub Transport Get-QueueClient Access Servers Test-OwaConnectivity Test-PopConnectivity Test-ImapConnectivity Test-ActiveSyncConnectivity GSX Solutions© 2012 12
  12. 12. Test OWAConnectivity Definition Test All Microsoft Exchange virtual directories Real TestTest ActiveSync Connectivity Definition Makes a real synchronization and a Direct Push test Real Test GSX Solutions© 2012 13
  13. 13. Get-Mailbox Definition: retrieve attributes and objects for mailbox TestGet-MailboxStatistics Definition: Obtain information about mailbox (size, number of messages, last time accessed, etc…) TestGet-LogonStatistics Definition: Retrieve logon information about current active sessions Test GSX Solutions© 2012 14
  14. 14. MaintainabilityAutomate and alertStore the informationTrend availability and usage statistics GSX Solutions© 2012 15
  15. 15. MaintainabilityAutomate and alertStore the informationTrend availability and usage statistics GSX Solutions© 2012 16
  16. 16. Scanning engine: where to automate tests?Alert system: how to be alerted?Mailbox, CAS, Hub, CAS Array, DAG PowerShell testsPowerShell autodiscovery of the environmentEnd-to-End testsStoring StatisticsTrending PowerShell statistics GSX Solutions© 2012 17
  17. 17. GSX automates the PowerShell testsGSX automates the alert systemGSX calculates and reports on the availability on each roleMailbox, CAS, Hub, CAS Array, DAG with PowerShell testsGSX draws the PowerShell autodiscovery of the environmentGSX adds others End-to-End tests such as Mail RoutingGSX enables the storage of PowerShell statistics fortroubleshoot and trending capacity GSX Solutions© 2012 18
  18. 18. @GSX_Solutions Friend of GSX GSX-Solutions Like page Blog www.gsx.com/blogGSX Solutions GSX SolutionsHeadquarters North AmericaGeneva, Switzerland Buffalo, USA+41 22 735 82 40 +1 310 765 4139 sales@gsx.com sales@gsx.com GSX Solutions© 2012 19
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×