<?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 Troubleshooting why a powershell script is not running in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Troubleshooting-why-a-powershell-script-is-not-running/m-p/109402#M23017</link>
    <description>&lt;P&gt;I have an app that I'm deploying called fake-app on Windows systems.  It's based on getting the share permissions in the Splunk blog a &lt;BR /&gt;
few weeks ago.&lt;/P&gt;

&lt;P&gt;[note: fake app is how I deploy and test new apps before I send them out to all systems]&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;dir .\fake-app /s /b
\deployment-apps\fake-app\bin\RunWin32_Share.cmd
\deployment-apps\fake-app\bin\Win32_Share.ps1
\deployment-apps\fake-app\local\inputs.conf
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The app is distributed to the servers.&lt;/P&gt;

&lt;P&gt;inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[powershell://RunWin32_Share]
script = .\bin\Win32_Share.ps1
DATETIME_CONFIG = CURRENT
#run it every 5 minutes
schedule = */5 * * * *
index = machine
sourcetype = Win32Share
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you run the script on the machine it works just fine but trying to get it to run under the UniversalForwarder doesn't appear to work.&lt;/P&gt;

&lt;P&gt;I don't see where the execution is getting tried and failing in the logs though&lt;/P&gt;

&lt;P&gt;Any ideas on why it's failing or how to troubleshoot?&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jan 2015 19:02:28 GMT</pubDate>
    <dc:creator>DamageSplunk</dc:creator>
    <dc:date>2015-01-22T19:02:28Z</dc:date>
    <item>
      <title>Troubleshooting why a powershell script is not running</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Troubleshooting-why-a-powershell-script-is-not-running/m-p/109402#M23017</link>
      <description>&lt;P&gt;I have an app that I'm deploying called fake-app on Windows systems.  It's based on getting the share permissions in the Splunk blog a &lt;BR /&gt;
few weeks ago.&lt;/P&gt;

&lt;P&gt;[note: fake app is how I deploy and test new apps before I send them out to all systems]&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;dir .\fake-app /s /b
\deployment-apps\fake-app\bin\RunWin32_Share.cmd
\deployment-apps\fake-app\bin\Win32_Share.ps1
\deployment-apps\fake-app\local\inputs.conf
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The app is distributed to the servers.&lt;/P&gt;

&lt;P&gt;inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[powershell://RunWin32_Share]
script = .\bin\Win32_Share.ps1
DATETIME_CONFIG = CURRENT
#run it every 5 minutes
schedule = */5 * * * *
index = machine
sourcetype = Win32Share
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you run the script on the machine it works just fine but trying to get it to run under the UniversalForwarder doesn't appear to work.&lt;/P&gt;

&lt;P&gt;I don't see where the execution is getting tried and failing in the logs though&lt;/P&gt;

&lt;P&gt;Any ideas on why it's failing or how to troubleshoot?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jan 2015 19:02:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Troubleshooting-why-a-powershell-script-is-not-running/m-p/109402#M23017</guid>
      <dc:creator>DamageSplunk</dc:creator>
      <dc:date>2015-01-22T19:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Troubleshooting why a powershell script is not running</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Troubleshooting-why-a-powershell-script-is-not-running/m-p/109403#M23018</link>
      <description>&lt;P&gt;In inputs.conf, try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;script = $SplunkHome\etc\apps\fake-app\bin\Win32_Share.ps1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Sep 2015 13:05:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Troubleshooting-why-a-powershell-script-is-not-running/m-p/109403#M23018</guid>
      <dc:creator>gflynn</dc:creator>
      <dc:date>2015-09-09T13:05:20Z</dc:date>
    </item>
  </channel>
</rss>

