Troubleshoot URL connectivity using PowerShell script (CheckURL.ps1)
Purpose:
Some customers may experience intermittent URL connectivity issues in monitors like IIS Server, Azure, AWS, etc., where the monitor Health/Availability fluctuates between up and down during consecutive polls. This often occurs due to minor network disruptions at the time of polling, even when the URL works fine on subsequent checks.
To identify this, a PowerShell script is available to monitor a URL continuously with a shorter frequency and for a specified duration. Since the minimum poll interval in Applications Manager is 1 minute, this script helps detect intermittent network errors with a frequency of seconds.
Usage:
- Open PowerShell in the Applications Manager installed server and navigate to <AppManager-Home>\bin\troubleshooting directory
- Execute the script using the command below:
.\CheckURL.ps1
- Enter the following inputs when prompted:
- Problematic URL: The URL you want to monitor.
- Frequency (in seconds): Time interval between checks (1-300 seconds). We recommend using small values (e.g., 5 or 10 seconds) to capture rare network issues.
- Duration (in hours): How long to monitor the URL. Leave blank to run for 12 hours by default.
- You can press Enter at any time to stop the script immediately.
- The script logs all URL responses to the URLResponseLog.txt file in the same directory.
Check the URLResponseLog.txt file for any intermittent errors while monitoring the problematic URL. This log will help identify network instability and aid in troubleshooting connectivity issues.

This script is available in Applications Manager version 173304, 174301 and 174600 onwards.
New to ADSelfService Plus?
Related Articles
How to generate a URL Debug Tool Response for troubleshooting?
The URL Debug Tool in Applications Manager helps you analyze and troubleshoot the performance of URLs and their components on webpages. It executes the URL, collects performance data, and provides detailed reports for further analysis. Follow the ...
Troubleshooting URL Monitor
When configuring a URL monitor in Applications Manager, you might encounter several errors related to accessibility, configuration, or server-side issues. Below are common errors along with step-by-step troubleshooting instructions to help you ...
Troubleshooting PowerShell Remoting
PowerShell remoting is used in Exchange Server, SharePoint Server, Active Directory, MSMQ, and Biztalk Server monitors to connect to remote servers for data collection. If you are experiencing issues with PowerShell remoting, follow the steps below ...
Troubleshooting errors in SharePoint Online (PowerShell mode)
Prerequisites: Ensure that you have met all the prerequisites for the Microsoft 365 monitor. From Applications Manager version 16300 onwards, Microsoft 365 monitor will use Microsoft Graph API as the primary mode of data collection. We have migrated ...
Troubleshoot - SAP Business One connectivity.
Ensure that the Integration framework for 'SAP Business One' is installed and accessible from the 'Applications Manager' server. To validate the connectivity please execute the following API request from the 'Applications Manager' server: POST URL: ...