This article applies as of PRTG 22
When trying to add new Exchange sensors to PRTG, I get the message
(1) "The Sensor cannot connect to the Device using Remote-PowerShell. Ensure that remote management is enabled on the Exchange Server and the username and password is correct. ..."
(2) "The Sensor was able to connect to the Device using Remote-PowerShell but couldn't retrieve access to Remote Exchange Management Shell. Ensure that remote management is enabled on the Exchange Server and the user has sufficient rights. ..."
(3) "The MessageQueue can only be retrieved from an ExchangeServer 2010 or higher that has the Role 'HubTransport' or 'EdgeTransport' ..."
(4) “The sensor was able to connect to the device using Remote PowerShell but could not retrieve access to Remote Exchange Management Shell. Ensure that remote management is enabled on the Exchange Server and the user has sufficient rights. See https://kb.paessler.com/en/topic/54353 for details.“
What can I do to fix it?
Resolving Exchange PowerShell sensor issues
See the following troubleshooting solutions for the error messages:
(1) "Sensor Cannot Connect to the Device"
- Make sure that PowerShell 2.0/.Net 4.7.2 is installed on your probe system.
- Do not use an IP address in the device settings of the Exchange server. Instead, use the Fully Qualified Domain Name (FQDN). Note: Some sensors work with the NetBIOS name of the target device, but the Exchange Mail Queue (PowerShell) sensor definitely needs FQDN.
- See Connect to Exchange servers using remote PowerShell for additional requirements on target side.
(2) "Could Not Retrieve Access to Remote Exchange Management Shell"
- The user of the sensor needs elevated rights on the Exchange system. Administrator rights are not sufficient. The easiest way to do this is to add the user to the View Only Organisation Management group. For details, see Connect to Exchange servers using remote PowerShell.
(3) "Exchange Server 2010 or Higher with Role 'HubTransport' or 'EdgeTransport' ..."
- Make sure that your server has the mentioned role.
- See error message Sensor Cannot Connect to the Device.
(4) "The sensor was able to connect to the device using Remote PowerShell but could not retrieve access to Remote Exchange Management Shell. Ensure that remote management is enabled on the Exchange Server and the user has sufficient rights. See https://kb.paessler.com/en/topic/54353 for details."
- Issue: Exchange (PowerShell) sensors do not work with the recent Exchange Server security update (April SU 2021/KB5001779) from April 13, 2021. For more information, see Released: April 2021 Exchange Server Security Updates.
- Solution:PRTG 21.2.67 includes a fix for the issues caused by KB5001779. We recommend that you install PRTG 21.2.67 to resolve the issues with Exchange (PowerShell) sensors. For more information, see the respective release notes.
- Workaround: If you cannot update your system, follow the steps below:
- Navigate to the \Sensor System subfolder of the PRTG program directory and create a backup of ExchangeSensorPS.exe.
- Download ExchangeSensorPS_21.x.67.ziphere, unzip the file, and store it in the \Sensor System subfolder of the PRTG program directory.
Note: If your Exchange (PowerShell) sensors still show the Down status, try to pause and resume the probe and the sensors. Click Scan Now for each sensor after you resume them.
More
Disclaimer:
The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.