Applications Systems
Remote Powershell Monitor fails in SAM with: The WSMan service could not launch a host process to process the given request
When attempting to run a Remote Execution Powershell Script with the "Windows Powershell Monitor" in SAM the following error produces: PowerShell script error. Connection to remote server 192.168.9.131 failed with the following error message: The WSMan service could not launch a host process to process the given request. Make sure the WSMan provider host server and proxy are properly registered.
First published date
Last published date
Overview
When attempting to run a Remote Execution Powershell Script with the "Windows Powershell Monitor" in SAM, the following error appears:
PowerShell script error. Connection to remote server 192.168.xxx.xxx failed
with the following error message: The WSMan service could not launch a host process to
process the given request. Make sure the WSMan provider host server and proxy are
properly registered. Product section
Cause
properly registered.
If the host server and proxy are OK, this issue may be caused by a corrupted User Profile on the target machine being monitored.
Resolution
First, open the application monitor in SAM to determine which credential on the target system is causing this issue, as displayed on the Edit Application page:
- In the Orion Web Console, click Settings > All Settings > SAM Settings.
- Click Component Monitor Library.
- Scroll down to "Windows PowerShell Monitor" and then expand the tree to drill down and select the application monitor related to the issue.
- Under Component Monitors, examine the Credential for Monitoring value.
Now that you know the credential, switch to the target system and recreate the User Profile linked to the credential.
- On the target system, open the Control Panel.
- Double-click "System".
- Click "Advanced System Settings".
- On the "Advanced" tab, click the "Settings" button in the "User Profiles" section.
- Select the Profile for the User Account in question and click "Delete".
- Log out of this system and log back in as that account to recreate the profile.
Use PowerShell in SAM
Windows PowerShell Monitor