<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: HPSIM running a powershell script for an event in Server Management - Systems Insight Manager</title>
    <link>https://community.hpe.com/t5/server-management-systems/hpsim-running-a-powershell-script-for-an-event/m-p/3970528#M26490</link>
    <description>Thanks&lt;BR /&gt;&lt;BR /&gt;We have tried with powershell set to unrestricted to no avail.  Maybe we will try and sign a script.&lt;BR /&gt;&lt;BR /&gt;Cheers</description>
    <pubDate>Tue, 03 Apr 2007 17:51:31 GMT</pubDate>
    <dc:creator>David Borojevic</dc:creator>
    <dc:date>2007-04-03T17:51:31Z</dc:date>
    <item>
      <title>HPSIM running a powershell script for an event</title>
      <link>https://community.hpe.com/t5/server-management-systems/hpsim-running-a-powershell-script-for-an-event/m-p/3970521#M26483</link>
      <description>Hi there,&lt;BR /&gt;&lt;BR /&gt;We have tried to get an HPSIM event to execute a powershell script.  It appears to open powershell but doesn't run the script. &lt;BR /&gt;&lt;BR /&gt;Is there a trick to get this to work?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 27 Mar 2007 17:50:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/hpsim-running-a-powershell-script-for-an-event/m-p/3970521#M26483</guid>
      <dc:creator>David Borojevic</dc:creator>
      <dc:date>2007-03-27T17:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: HPSIM running a powershell script for an event</title>
      <link>https://community.hpe.com/t5/server-management-systems/hpsim-running-a-powershell-script-for-an-event/m-p/3970522#M26484</link>
      <description>Which version of HPSIM?&lt;BR /&gt;&lt;BR /&gt;I'm not familiar with powershell, how do you pass the script to run?&lt;BR /&gt;&lt;BR /&gt;To run our perl commands it is just a matter of specifying the location of the perl image and file to run; e.g.&lt;BR /&gt;c:\perl\perl.exe d:\perl_script\myfile.pl&lt;BR /&gt;in the command to launch part of the costom command set up.</description>
      <pubDate>Tue, 27 Mar 2007 22:36:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/hpsim-running-a-powershell-script-for-an-event/m-p/3970522#M26484</guid>
      <dc:creator>Rob Buxton</dc:creator>
      <dc:date>2007-03-27T22:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: HPSIM running a powershell script for an event</title>
      <link>https://community.hpe.com/t5/server-management-systems/hpsim-running-a-powershell-script-for-an-event/m-p/3970523#M26485</link>
      <description>After a brief look at the MS docs, and with no real knowledge of the product have you just tried using the full path to the powershell script as the command?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Mar 2007 22:53:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/hpsim-running-a-powershell-script-for-an-event/m-p/3970523#M26485</guid>
      <dc:creator>Rob Buxton</dc:creator>
      <dc:date>2007-03-27T22:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: HPSIM running a powershell script for an event</title>
      <link>https://community.hpe.com/t5/server-management-systems/hpsim-running-a-powershell-script-for-an-event/m-p/3970524#M26486</link>
      <description>Full path is in there.  And also full path to powershell script as well doesn't make a difference.&lt;BR /&gt;&lt;BR /&gt;It seems to launch powershell but fails to run the powershell script.  We have to kill the powershell process via task manager so it is definitely getting that far.  The same launch technique outside of HPSIM works.&lt;BR /&gt;&lt;BR /&gt;Cheers</description>
      <pubDate>Mon, 02 Apr 2007 21:51:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/hpsim-running-a-powershell-script-for-an-event/m-p/3970524#M26486</guid>
      <dc:creator>David Borojevic</dc:creator>
      <dc:date>2007-04-02T21:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: HPSIM running a powershell script for an event</title>
      <link>https://community.hpe.com/t5/server-management-systems/hpsim-running-a-powershell-script-for-an-event/m-p/3970525#M26487</link>
      <description>What does the Command on the Custom Command actually look like?&lt;BR /&gt;Can you provide an example?</description>
      <pubDate>Mon, 02 Apr 2007 22:53:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/hpsim-running-a-powershell-script-for-an-event/m-p/3970525#M26487</guid>
      <dc:creator>Rob Buxton</dc:creator>
      <dc:date>2007-04-02T22:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: HPSIM running a powershell script for an event</title>
      <link>https://community.hpe.com/t5/server-management-systems/hpsim-running-a-powershell-script-for-an-event/m-p/3970526#M26488</link>
      <description>Hi David,&lt;BR /&gt;&lt;BR /&gt;I do know for powershell, you do have to enable security within them to allow scripts to be run.&lt;BR /&gt;&lt;BR /&gt;Out of the box, PowerShell is is just a interactive shell.  In order to allow scripts to be run, you have to run a command within the powershell to enable a certain level of script functionality.  It then remembers that setting for future scripts.&lt;BR /&gt;&lt;BR /&gt;Have you done this?&lt;BR /&gt;Nelson</description>
      <pubDate>Tue, 03 Apr 2007 09:12:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/hpsim-running-a-powershell-script-for-an-event/m-p/3970526#M26488</guid>
      <dc:creator>NJK-Work</dc:creator>
      <dc:date>2007-04-03T09:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: HPSIM running a powershell script for an event</title>
      <link>https://community.hpe.com/t5/server-management-systems/hpsim-running-a-powershell-script-for-an-event/m-p/3970527#M26489</link>
      <description>Changing the Windows PowerShell Script Execution Policy&lt;BR /&gt;The Set-ExecutionPolicy cmdlet enables you to determine which Windows PowerShell scripts (if any) will be allowed to run on your computer. Windows PowerShell has four different execution policies:&lt;BR /&gt;&lt;BR /&gt;â ¢ Restricted â   No scripts can be run. Windows PowerShell can be used only in interactive mode.&lt;BR /&gt; &lt;BR /&gt;â ¢ AllSigned â   Only scripts signed by a trusted publisher can be run.&lt;BR /&gt; &lt;BR /&gt;â ¢ RemoteSigned â   Downloaded scripts must be signed by a trusted publisher before they can be run.&lt;BR /&gt; &lt;BR /&gt;â ¢ Unrestricted â   No restrictions; all Windows PowerShell scripts can be run.&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;To assign a particular policy simply call Set-ExecutionPolicy followed by the appropriate policy name. For example, this command sets the execution policy to RemoteSigned:&lt;BR /&gt;&lt;BR /&gt;Set-ExecutionPolicy RemoteSigned&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Apr 2007 09:15:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/hpsim-running-a-powershell-script-for-an-event/m-p/3970527#M26489</guid>
      <dc:creator>NJK-Work</dc:creator>
      <dc:date>2007-04-03T09:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: HPSIM running a powershell script for an event</title>
      <link>https://community.hpe.com/t5/server-management-systems/hpsim-running-a-powershell-script-for-an-event/m-p/3970528#M26490</link>
      <description>Thanks&lt;BR /&gt;&lt;BR /&gt;We have tried with powershell set to unrestricted to no avail.  Maybe we will try and sign a script.&lt;BR /&gt;&lt;BR /&gt;Cheers</description>
      <pubDate>Tue, 03 Apr 2007 17:51:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/hpsim-running-a-powershell-script-for-an-event/m-p/3970528#M26490</guid>
      <dc:creator>David Borojevic</dc:creator>
      <dc:date>2007-04-03T17:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: HPSIM running a powershell script for an event</title>
      <link>https://community.hpe.com/t5/server-management-systems/hpsim-running-a-powershell-script-for-an-event/m-p/3970529#M26491</link>
      <description>Judging by this thread I think I'll stick with perl!&lt;BR /&gt;&lt;BR /&gt;From a cmd line, if you just enter the name of the PS script does it run?&lt;BR /&gt;If it does then the launch line in HPSIM would be just the name of the PS script.&lt;BR /&gt;&lt;BR /&gt;I guess another test maybe to nestle the PS in a batch file and see what happens there.</description>
      <pubDate>Wed, 04 Apr 2007 16:44:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/hpsim-running-a-powershell-script-for-an-event/m-p/3970529#M26491</guid>
      <dc:creator>Rob Buxton</dc:creator>
      <dc:date>2007-04-04T16:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: HPSIM running a powershell script for an event</title>
      <link>https://community.hpe.com/t5/server-management-systems/hpsim-running-a-powershell-script-for-an-event/m-p/3970530#M26492</link>
      <description>How are you calling the script?  Are you trying to call the .ps1 file directly?  Due to PowerShell security features, this will not work out of the box.  I find it easiest to wrap the PowerShell script in a VBScript script.&lt;BR /&gt;&lt;BR /&gt;See here for more info:&lt;BR /&gt;&lt;A href="http://blog.sapien.com/current/2006/12/25/more-fun-with-scheduled-powershell.html" target="_blank"&gt;http://blog.sapien.com/current/2006/12/25/more-fun-with-scheduled-powershell.html&lt;/A&gt;</description>
      <pubDate>Fri, 27 Apr 2007 07:05:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/hpsim-running-a-powershell-script-for-an-event/m-p/3970530#M26492</guid>
      <dc:creator>Marco Shaw_1</dc:creator>
      <dc:date>2007-04-27T07:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: HPSIM running a powershell script for an event</title>
      <link>https://community.hpe.com/t5/server-management-systems/hpsim-running-a-powershell-script-for-an-event/m-p/3970531#M26493</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I've hit the same problem. Unfortunately the link Marco supplied is unavailable&lt;BR /&gt;&lt;BR /&gt;Is it possible to wrap Powershell and pass parameters from HP SIM&lt;BR /&gt;&lt;BR /&gt;Has anyone found a resolution to this?&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;&lt;BR /&gt;Nick</description>
      <pubDate>Fri, 12 Mar 2010 10:33:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-systems/hpsim-running-a-powershell-script-for-an-event/m-p/3970531#M26493</guid>
      <dc:creator>Nick M_1</dc:creator>
      <dc:date>2010-03-12T10:33:19Z</dc:date>
    </item>
  </channel>
</rss>

