Office 365 Whitelist Your Request Couldnt Be Completed. Please Try Again in a Few Minutes
This PowerShell script volition perform a health check of your Substitution Server environment, including servers and database availability groups, and output a HTML report that y'all tin transport to your inbox.
The report includes a summary of issues that were plant, also equally a color-coded table with the detailed test results to assist yous speedily spot problems.
This is a useful script to run as a daily wellness check offset thing in the morning to identify any problems that may have occurred overnight, and give you a take chances to gear up them before your end users notice.
This script is available to download from the TechNet Script Gallery or Github. Comments are welcome beneath. If yous notice a bug please consider raising it as an event on Github.
Script parameters:
- -Server, Perform a wellness check of a single server
- -ReportMode, Set up to $true to generate a HTML written report. A default file name is used if none is specified.
- -ReportFile, Allows you lot to specify a different HTML report file name than the default.
- -SendEmail, Sends the HTML report via e-mail using the SMTP configuration within the script.
- -AlertsOnly, Only sends the email report if at least one error or warning was detected.
- -Log, Writes a log file to aid with troubleshooting.
Examples:
. \ Examination - ExchangeServerHealth . ps1 |
Checks all servers in the organization and outputs the results to the beat window.
. \ Test - ExchangeServerHealth . ps1 - Server HO - EX2010 - MB1 |
Checks the server HO-EX2010-MB1 and outputs the results to the shell window.
. \ Examination - ExchangeServerHealth . ps1 - ReportMode - SendEmail |
Checks all servers in the organization, outputs the results to the beat out window, a HTML report, and emails the HTML report to the address configured in the script.
If you use the study manner you'll get a HTML file containing the health check results, and/or an email to your designated address if you also employ the send e-mail option.
For the electronic mail functionality to work please update these variables in the script to accommodate your environment.
#................................... # Modify these Email Settings #................................... $ smtpsettings = @ { To = "administrator@exchangeserverpro.net" From = "exchangeserver@exchangeserverpro.net" Subject = "Exchange Server Health Report - $now" SmtpServer = "smtp.exchangeserverpro.internet" } |
A lot of people inquire how to add multiple recipients to the SMTP settings. My communication is to use a distribution group, so that whatever time yous need to modify the list of recipients you tin can just change the distribution group membership instead of needing to alter the script code.
When running the script on non-English servers you tin can modify the following variables in the script to match your language and so that the script does non requite errors or incorrect results.
#................................... # Alter these language # localization strings. #................................... # The server roles must match the office names you see when yous run Exam-ServiceHealth. $ casrole = "Client Access Server Role" $ htrole = "Hub Ship Server Role" $ mbrole = "Mailbox Server Role" $ umrole = "Unified Messaging Server Role" # This should match the word for "Success", or the result of a successful Test-MAPIConnectivity test $ success = "Success" |
For example, a German organization would use the following values:
# The server roles must match the role names y'all run across when yous run Test-ServiceHealth. $ casrole = "Clientzugriffs-Serverrolle" $ htrole = "Hub-Transport-Serverrolle" $ mbrole = "Postfachserverrolle" $ umrole = "Unified Messaging-Serverrolle" # This should lucifer the word for "Success", or the upshot of a successful Examination-MAPIConnectivity test $ success = "Erfolgreich" |
Apply the ignorelist.txt file to specify the names of any servers, DAGs, or databases that you want to ignore for the tests.
My scheduled task settings for this script are:
- Run whether user is logged on or not
- Run with highest privileges
- Action: Start a program
- Program: powershell.exe
- Arguments: -control "C:\Scripts\ExchangeServerHealth\Examination-ExchangeServerHealth.ps1 -Log -SendEmail"
FAQ
Q: Which version of PowerShell is required?
If you are running the script on a server that has Commutation 2010 or 2013 (or subsequently) server roles or management tools installed then information technology should work.
Q: I'grand running multiple versions of Commutation, will the script still work?
Yep, it should work as long as you run information technology from the highest version of Exchange. For instance, in a mixed Exchange 2010/2013 environment yous should run the script from an Exchange 2013 server.
Q: Why do I get an error when the script sends the electronic mail written report?
Brand certain you lot've configured the email settings section of the script to betoken to a Hub Transport that either accepts anonymous users (typically an cyberspace-facing Hub Transport), or if you lot're using a separate management server or admin workstation point the SMTP server to a Hub Transport that has a receive connector set up that the server you're running the script on is immune to relay through.
Q: Why aren't Edge Transport servers checked?
Between firewalls and permissions the Edge Transport checks are difficult to account for so they are currently skipped past the script.
Q: What should I do when the script written report an error/fail on my servers?
The script doesn't perform any diagnostics when information technology detects an error, information technology only reports them to y'all. When you run across an mistake y'all should investigate further using the management tools and cmdlets that are provided by Exchange.
If you are encountering situations where the script reports errors that plough out to be simulated alarms please allow me know and I volition do my best eliminate those false alarms.
Q: Can you lot add together feature X to the script?
If you have additional requirements then yous are encouraged to customize the script to adapt your ain needs.
Source: https://practical365.com/powershell-script-exchange-server-health-check-report/
0 Response to "Office 365 Whitelist Your Request Couldnt Be Completed. Please Try Again in a Few Minutes"
Post a Comment