<?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: Why are certain Powershell scripts running and others not? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-certain-Powershell-scripts-running-and-others-not/m-p/619855#M106850</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233980"&gt;@damo66a&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;have you seen the Splunk TA Windows (&lt;A href="https://splunkbase.splunk.com/app/742)?" target="_blank"&gt;https://splunkbase.splunk.com/app/742)?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;then in splunkbase there's this app that I never used Hurricane Labs Add-on for Windows PowerShell Transcript (&lt;A href="https://splunkbase.splunk.com/app/4984)" target="_blank"&gt;https://splunkbase.splunk.com/app/4984)&lt;/A&gt;&amp;nbsp;that maybe can help you.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Mon, 07 Nov 2022 11:24:28 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-11-07T11:24:28Z</dc:date>
    <item>
      <title>Why are certain Powershell scripts running and others not?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-certain-Powershell-scripts-running-and-others-not/m-p/619028#M106759</link>
      <description>&lt;P&gt;I'm trying to get data in from a server via a powershell script. I have another app already doing similar on the same server but for some reason (that is driving me up the wall) i constantly get the error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ERROR Executing script=. "$SplunkHome\etc\apps\vmwareinventory\appserver\static\vmguests.ps1" for stanza=VMWare-Guests failed with exception=The system cannot find the path specified.&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have checked and double checked the spellings, the system variables (for Splunk_Home), renamed the files, the directories and still it comes up with this error. I have followed the instructions to the letter from the Splunk Documentation and still the error persists.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is my input stanza:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[powershell://VMWare-Guests]
script = . "$SplunkHome\etc\apps\vmwareinventory\appserver\static\vmguests.ps1"
schedule = 30 0 * * *
sourcetype = vm:inventory
index = vmware
disabled = false&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone please tell me why this would be happening with this script but not others on the same server?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TIA&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 04:20:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-certain-Powershell-scripts-running-and-others-not/m-p/619028#M106759</guid>
      <dc:creator>damo66a</dc:creator>
      <dc:date>2022-11-01T04:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Why are certain Powershell scripts running and others not?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-certain-Powershell-scripts-running-and-others-not/m-p/619054#M106763</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233980"&gt;@damo66a&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;the variables is "$SPUNK_HOME" and not "$SplunkHome", please try using the correct variables or the absolute path.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 06:56:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-certain-Powershell-scripts-running-and-others-not/m-p/619054#M106763</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-11-01T06:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why are certain Powershell scripts running and others not?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-certain-Powershell-scripts-running-and-others-not/m-p/619086#M106764</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your input. In terms of correct variables, this is what is in the instructions on the Splunk Documentation located &lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.1/Data/MonitorWindowsdatawithPowerShellscripts" target="_blank" rel="noopener"&gt;here&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I will try what you say but I have simply followed the instructions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 10:18:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-certain-Powershell-scripts-running-and-others-not/m-p/619086#M106764</guid>
      <dc:creator>damo66a</dc:creator>
      <dc:date>2022-11-01T10:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why are certain Powershell scripts running and others not?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-certain-Powershell-scripts-running-and-others-not/m-p/619237#M106781</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233980"&gt;@damo66a&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I'm not a PowerShell expert, but let me know if you solved changing the variable.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 07:38:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-certain-Powershell-scripts-running-and-others-not/m-p/619237#M106781</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-11-02T07:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why are certain Powershell scripts running and others not?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-certain-Powershell-scripts-running-and-others-not/m-p/619821#M106848</link>
      <description>&lt;P&gt;so i changed the variable and it made no difference. we're still getting the same "cannot find file specified" error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we do have other scripts running on this server by Splunk so its somewhat confusing.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 09:02:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-certain-Powershell-scripts-running-and-others-not/m-p/619821#M106848</guid>
      <dc:creator>damo66a</dc:creator>
      <dc:date>2022-11-07T09:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why are certain Powershell scripts running and others not?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-certain-Powershell-scripts-running-and-others-not/m-p/619855#M106850</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233980"&gt;@damo66a&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;have you seen the Splunk TA Windows (&lt;A href="https://splunkbase.splunk.com/app/742)?" target="_blank"&gt;https://splunkbase.splunk.com/app/742)?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;then in splunkbase there's this app that I never used Hurricane Labs Add-on for Windows PowerShell Transcript (&lt;A href="https://splunkbase.splunk.com/app/4984)" target="_blank"&gt;https://splunkbase.splunk.com/app/4984)&lt;/A&gt;&amp;nbsp;that maybe can help you.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 11:24:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-certain-Powershell-scripts-running-and-others-not/m-p/619855#M106850</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-11-07T11:24:28Z</dc:date>
    </item>
  </channel>
</rss>

