Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 21093

Re: Unable to get a remote Powershell script running

$
0
0

SAM's PowerShell Script Monitor assumes the full body of the PowerShell script will be in contained within the "Script Body" field with any arguments specified in the "Script Arguments" field. To have this script execute remotely you'll need to have the "Execution Mode" option set to "Remote" and have WinRM configured properly on both the local Orion server and remote host. PowerShell 2.0 must also be installed on both machines.

 

CONFIGURING WINDOWS REMOTE MANAGEMENT (WINRM)

  1. If not already done so, install PowerShell 2.0 and WinRM on the SAM and target servers. Powershell 2.0 can be found here: http://support.microsoft.com/kb/968930.
  2. On the SAM server, open a command prompt as an Administrator. To do this, perform the following step:
  • Go to the Start menu and right-click the cmd.exe and then select Run as Administrator.
  1. Enter the following in the command prompt:
          winrm quickconfig
    winrm set winrm/config/client @{TrustedHosts="*"}
  2. On the target server, open a command prompt as an Administrator and enter the following:
          winrm quickconfig
    winrm set winrm/config/client @{TrustedHosts="IP_ADDRESS"}

where IP address is the IP address of your SAM server.

 

 

Lastly, ensure that you've clicked the "Get Script Output" button after assigning the template to the node

Get Script Output.png


Viewing all articles
Browse latest Browse all 21093

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>