<?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 splunk universal forwarder error installation on Windowa via PowerShell in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/splunk-universal-forwarder-error-installation-on-Windowa-via/m-p/679959#M113611</link>
    <description>&lt;P&gt;Getting this error via Power Shell for the Splunk Universall installation&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;Error below&lt;/P&gt;
&lt;P class=""&gt;The term 'C:\Program Files\SplunkUniversalForwarder\bin\splunk' is not recognized as the name of a cmdlet, function, script file, or operable&lt;/P&gt;
&lt;P class=""&gt;program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.&lt;/P&gt;
&lt;P class=""&gt;working.ps1:17 char:3&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;Here is how i defined my variables&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$SplunkInstallationDir = "C:\Program Files\SplunkUniversalForwarder"

&amp;amp; "$SplunkInstallationDir\bin\splunk" start --accept-license --answer-yes --no-prompt&lt;/LI-CODE&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;It works if i run manually only.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;Kindly assist&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2024 16:57:54 GMT</pubDate>
    <dc:creator>lumi</dc:creator>
    <dc:date>2024-03-07T16:57:54Z</dc:date>
    <item>
      <title>splunk universal forwarder error installation on Windowa via PowerShell</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/splunk-universal-forwarder-error-installation-on-Windowa-via/m-p/679959#M113611</link>
      <description>&lt;P&gt;Getting this error via Power Shell for the Splunk Universall installation&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;Error below&lt;/P&gt;
&lt;P class=""&gt;The term 'C:\Program Files\SplunkUniversalForwarder\bin\splunk' is not recognized as the name of a cmdlet, function, script file, or operable&lt;/P&gt;
&lt;P class=""&gt;program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.&lt;/P&gt;
&lt;P class=""&gt;working.ps1:17 char:3&lt;/P&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;Here is how i defined my variables&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$SplunkInstallationDir = "C:\Program Files\SplunkUniversalForwarder"

&amp;amp; "$SplunkInstallationDir\bin\splunk" start --accept-license --answer-yes --no-prompt&lt;/LI-CODE&gt;
&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;It works if i run manually only.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P class=""&gt;Kindly assist&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 16:57:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/splunk-universal-forwarder-error-installation-on-Windowa-via/m-p/679959#M113611</guid>
      <dc:creator>lumi</dc:creator>
      <dc:date>2024-03-07T16:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: splunk universal forwarder error installation on Windowa via PowerShell</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/splunk-universal-forwarder-error-installation-on-Windowa-via/m-p/680188#M113648</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/265698"&gt;@lumi&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Although your command should work, you might try:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;$SplunkInstallationDir = "C:\Program Files\SplunkUniversalForwarder"
&amp;amp; "$($SplunkInstallationDir)\bin\splunk.exe" start --accept-license --answer-yes --no-prompt

# or

$SplunkExe = "C:\Program Files\SplunkUniversalForwarder\bin\splunk.exe"
&amp;amp; $SplunkExe start --accept-license --answer-yes --no-prompt&lt;/LI-CODE&gt;&lt;P&gt;To run "splunk start," the account should have Full Control permission on C:\Program Files\SplunkUniversalForwarder and all subdirectories and files. Ideally, the command should be executed by the service account, assuming the forwarder is also configured to run as a service.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2024 02:12:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/splunk-universal-forwarder-error-installation-on-Windowa-via/m-p/680188#M113648</guid>
      <dc:creator>tscroggins</dc:creator>
      <dc:date>2024-03-10T02:12:43Z</dc:date>
    </item>
  </channel>
</rss>

