<?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 Need help executing a script with powershell v3 Modular Input in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Need-help-executing-a-script-with-powershell-v3-Modular-Input/m-p/292924#M55784</link>
    <description>&lt;P&gt;Could somebody help me with this problem, i have simple powershell script:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Write-Host "Num Args:" $args.Length;
foreach ($arg in $args)
{
  Write-Host "Arg: $arg";
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and i'm trying to execute with Powershell v3 Modular Input, but i don't know how. In Command or Script Path field says put full path to a script, i did it, but it is not working. &lt;/P&gt;</description>
    <pubDate>Wed, 22 Nov 2017 09:07:37 GMT</pubDate>
    <dc:creator>ribicU</dc:creator>
    <dc:date>2017-11-22T09:07:37Z</dc:date>
    <item>
      <title>Need help executing a script with powershell v3 Modular Input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-help-executing-a-script-with-powershell-v3-Modular-Input/m-p/292924#M55784</link>
      <description>&lt;P&gt;Could somebody help me with this problem, i have simple powershell script:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Write-Host "Num Args:" $args.Length;
foreach ($arg in $args)
{
  Write-Host "Arg: $arg";
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and i'm trying to execute with Powershell v3 Modular Input, but i don't know how. In Command or Script Path field says put full path to a script, i did it, but it is not working. &lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 09:07:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-help-executing-a-script-with-powershell-v3-Modular-Input/m-p/292924#M55784</guid>
      <dc:creator>ribicU</dc:creator>
      <dc:date>2017-11-22T09:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need help executing a script with powershell v3 Modular Input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Need-help-executing-a-script-with-powershell-v3-Modular-Input/m-p/292925#M55785</link>
      <description>&lt;P&gt;Hi @ribicU, I think it's because your script is not returning something.&lt;BR /&gt;
"Write-Host" is only printing to console. &lt;BR /&gt;
Try "Write-Output" instead or save your values to a variable and "return" it in the end.&lt;/P&gt;

&lt;P&gt;Dennis&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 12:50:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Need-help-executing-a-script-with-powershell-v3-Modular-Input/m-p/292925#M55785</guid>
      <dc:creator>DennisFFM</dc:creator>
      <dc:date>2017-11-22T12:50:16Z</dc:date>
    </item>
  </channel>
</rss>

