bainf / CollectExchangeInfo

PowerShell script to collect Exchange Server's Information

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

Collect-ExchangeInfo.ps1 is a PowerShell script to collect Microsoft Exchange Server related information. This includes various Exchange-related cmdlets, event logs, and IIS configuration etc.

For more details, see the script's comment-based help.

Download Link

Load-Clixml.ps1 contains a function "Load-Clixml" which simply imports all xml files in a specified folder and creates corresponding variables in the global scope. For example, for a file "ExchangeServer.xml" it creates a variable $ExchangeServer. This script is just to make it easy to load all the xml files collected. You do not need this file to use Collect-ExchangeInfo.ps1 and this function can be used independently.

Sample usage

  1. This will collect only Active Directory-based information

    .\Collect-ExchangeInfo.ps1 -Path C:\exinfo
  2. In addition to the information gathered by 1., this will include machine-specific informtion for servers whose name matches ("EX-*"). Their event logs + Exchange's crimson logs are also collected.

    .\Collect-ExchangeInfo.ps1 -Path C:\exinfo -Servers:EX-* -IncludeEventLogsWithCrimson

Note

After you download the ps1 file, make sure to "Unblock":

  1. Right-click the ps1 file and click [Property]
  2. In the [General] tab, if you see "This file came from another computer and might be blocked to help protect this computer", check [Unblock]

License

Copyright (c) 2020 Ryusuke Fujita

This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

PowerShell script to collect Exchange Server's Information


Languages

Language:PowerShell 100.0%