Troubleshooting PowerShell Remoting

Troubleshooting PowerShell Remoting

PowerShell remoting is used in Exchange Server, SharePoint Server, Active DirectoryMSMQ, and Biztalk Server monitors to connect to remote servers for data collection. If you are experiencing issues with PowerShell remoting, follow the steps below to troubleshoot:
Notes
Note: It is recommended to use an Administrator account for PowerShell monitoring. If you are using a non-admin user account, ensure that you have completed the steps outlined in this KB.
  1. Ensure that all the prerequisites mentioned in this page have been implemented.
  2. Ensure that the following PowerShell ports, 5985 and 5986, are open on the remote server and accessible from the server where Applications Manager is installed.
  3. Check if you are able to create a basic PSSession with the remote server with the following steps:
    1. Open the PowerShell Console with administrator privileges
    2. Run this command: $testSession= New-PSSession -ComputerName <REMOTE-HOSTNAME> -Credential Get-Credential
    3. A pop-up will appear, prompting you to enter the credentials for the remote server.
    4. If any error occurs, perform the necessary configuration or setup to resolve it
    5. If the command in step ii executes without any errors, remove the test session by running: Get-PSSession | Remove-PSSession
Notes
If you encounter any errors in step ii despite completing the prerequisites, please consult your server team or Microsoft support for assistance, as PSSession is a standard feature of Windows Server.
Once the above steps are completed and you are able to establish a basic connection, follow the steps below to run a basic connectivity script.
  1. Open PowerShell in administrator mode on the machine where Applications Manager is installed.

  2. Go to the <Applications Manager Home>\working\conf\application\scripts\powershell directory.

  3. Execute the below command by replacing hostnameusername and password with the credentials of the remote server used in the monitor:

    Quote
    .\TestConnectivity.ps1 'hostname' 'username' 'password'
  4. Retrieve the output of the above command.

If you encounter an error or recieve no data for the above script, despite being able to establish a basic connection, please contact our support team at appmanager-support@manageengine.com. Include a screenshot of the completed prerequisites, the output/error message received from the script, and latest Support Information File (SIF) from Applications Manager with 'Print all logs' enabled and the issue reproduced for analysis.


                  New to ADSelfService Plus?