<?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 UF not executing script - Sharing Violation in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-UF-not-executing-script-Sharing-Violation/m-p/607992#M25959</link>
    <description>&lt;P&gt;Hi there - hopefully someone can help with this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to deploy sysmon via a deployment app however it looks like the script is having some issues: I can see the following error from the splunkd logs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;08-03-2022&lt;/SPAN&gt; &lt;SPAN class=""&gt;10:54:32.982&lt;/SPAN&gt;&lt;SPAN&gt; +&lt;/SPAN&gt;&lt;SPAN class=""&gt;0800&lt;/SPAN&gt; &lt;SPAN class=""&gt;ERROR&lt;/SPAN&gt; &lt;SPAN class=""&gt;ExecProcessor&lt;/SPAN&gt;&lt;SPAN&gt; [&lt;/SPAN&gt;&lt;SPAN class=""&gt;15204&lt;/SPAN&gt; &lt;SPAN class=""&gt;ExecProcessor&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN class=""&gt;-&lt;/SPAN&gt; &lt;SPAN class=""&gt;message&lt;/SPAN&gt; &lt;SPAN class=""&gt;from&lt;/SPAN&gt;&lt;SPAN&gt; ""&lt;/SPAN&gt;&lt;SPAN class=""&gt;C:\Program&lt;/SPAN&gt; &lt;SPAN class=""&gt;Files\SplunkUniversalForwarder\etc\apps\CONF_corp_sysmon\bin\deploy.bat&lt;/SPAN&gt;&lt;SPAN&gt;"" &lt;/SPAN&gt;&lt;SPAN class=""&gt;Sharing&lt;/SPAN&gt; &lt;SPAN class=""&gt;violation&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I can run the script manually with no issues. Any idea's would be much appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;The deploy.bat file is as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF EXIST "C:\Program Files (x86)" (&lt;BR /&gt;SET BINARCH=Sysmon64.exe&lt;BR /&gt;SET SERVBINARCH=Sysmon64&lt;BR /&gt;) ELSE (&lt;BR /&gt;SET BINARCH=Sysmon.exe&lt;BR /&gt;SET SERVBINARCH=Sysmon&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;SET SYSMONDIR=C:\windows&lt;BR /&gt;SET SYSMONBIN=%SYSMONDIR%\%BINARCH%&lt;BR /&gt;SET SYSMONCONFIG=%SYSMONDIR%\config.xml&lt;/P&gt;&lt;P&gt;SET GLBSYSMONBIN="%programfiles%\splunkuniversalforwarder\etc\apps\CONF_corp_sysmon\bin\%BINARCH%"&lt;BR /&gt;SET GLBSYSMONCONFIG="%programfiles%\splunkuniversalforwarder\etc\apps\CONF_corp_sysmon\bin\config.xml"&lt;/P&gt;&lt;P&gt;sc query "%SERVBINARCH%" | Find "RUNNING"&lt;BR /&gt;If "%ERRORLEVEL%" EQU "1" (&lt;BR /&gt;GOTO startsysmon&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;:installsysmon&lt;BR /&gt;xcopy %GLBSYSMONBIN% %SYSMONDIR% /y&lt;BR /&gt;xcopy %GLBSYSMONCONFIG% %SYSMONDIR% /y&lt;BR /&gt;chdir %SYSMONDIR%&lt;BR /&gt;%SYSMONBIN% -i %SYSMONCONFIG% -accepteula -h md5,sha256 -n -l&lt;BR /&gt;sc config %SERVBINARCH% start= auto&lt;/P&gt;&lt;P&gt;:updateconfig&lt;BR /&gt;xcopy %GLBSYSMONCONFIG% %SYSMONCONFIG% /y&lt;BR /&gt;chdir %SYSMONDIR%&lt;BR /&gt;%SYSMONBIN% -c %SYSMONCONFIG%&lt;BR /&gt;EXIT /B 0&lt;/P&gt;&lt;P&gt;:startsysmon&lt;BR /&gt;sc start %SERVBINARCH%&lt;BR /&gt;If "%ERRORLEVEL%" EQU "1060" (&lt;BR /&gt;GOTO installsysmon&lt;BR /&gt;) ELSE (&lt;BR /&gt;GOTO updateconfig&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Aug 2022 03:29:15 GMT</pubDate>
    <dc:creator>nick_currie</dc:creator>
    <dc:date>2022-08-03T03:29:15Z</dc:date>
    <item>
      <title>Splunk UF not executing script - Sharing Violation</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-UF-not-executing-script-Sharing-Violation/m-p/607992#M25959</link>
      <description>&lt;P&gt;Hi there - hopefully someone can help with this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to deploy sysmon via a deployment app however it looks like the script is having some issues: I can see the following error from the splunkd logs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;08-03-2022&lt;/SPAN&gt; &lt;SPAN class=""&gt;10:54:32.982&lt;/SPAN&gt;&lt;SPAN&gt; +&lt;/SPAN&gt;&lt;SPAN class=""&gt;0800&lt;/SPAN&gt; &lt;SPAN class=""&gt;ERROR&lt;/SPAN&gt; &lt;SPAN class=""&gt;ExecProcessor&lt;/SPAN&gt;&lt;SPAN&gt; [&lt;/SPAN&gt;&lt;SPAN class=""&gt;15204&lt;/SPAN&gt; &lt;SPAN class=""&gt;ExecProcessor&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN class=""&gt;-&lt;/SPAN&gt; &lt;SPAN class=""&gt;message&lt;/SPAN&gt; &lt;SPAN class=""&gt;from&lt;/SPAN&gt;&lt;SPAN&gt; ""&lt;/SPAN&gt;&lt;SPAN class=""&gt;C:\Program&lt;/SPAN&gt; &lt;SPAN class=""&gt;Files\SplunkUniversalForwarder\etc\apps\CONF_corp_sysmon\bin\deploy.bat&lt;/SPAN&gt;&lt;SPAN&gt;"" &lt;/SPAN&gt;&lt;SPAN class=""&gt;Sharing&lt;/SPAN&gt; &lt;SPAN class=""&gt;violation&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I can run the script manually with no issues. Any idea's would be much appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;The deploy.bat file is as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF EXIST "C:\Program Files (x86)" (&lt;BR /&gt;SET BINARCH=Sysmon64.exe&lt;BR /&gt;SET SERVBINARCH=Sysmon64&lt;BR /&gt;) ELSE (&lt;BR /&gt;SET BINARCH=Sysmon.exe&lt;BR /&gt;SET SERVBINARCH=Sysmon&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;SET SYSMONDIR=C:\windows&lt;BR /&gt;SET SYSMONBIN=%SYSMONDIR%\%BINARCH%&lt;BR /&gt;SET SYSMONCONFIG=%SYSMONDIR%\config.xml&lt;/P&gt;&lt;P&gt;SET GLBSYSMONBIN="%programfiles%\splunkuniversalforwarder\etc\apps\CONF_corp_sysmon\bin\%BINARCH%"&lt;BR /&gt;SET GLBSYSMONCONFIG="%programfiles%\splunkuniversalforwarder\etc\apps\CONF_corp_sysmon\bin\config.xml"&lt;/P&gt;&lt;P&gt;sc query "%SERVBINARCH%" | Find "RUNNING"&lt;BR /&gt;If "%ERRORLEVEL%" EQU "1" (&lt;BR /&gt;GOTO startsysmon&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;:installsysmon&lt;BR /&gt;xcopy %GLBSYSMONBIN% %SYSMONDIR% /y&lt;BR /&gt;xcopy %GLBSYSMONCONFIG% %SYSMONDIR% /y&lt;BR /&gt;chdir %SYSMONDIR%&lt;BR /&gt;%SYSMONBIN% -i %SYSMONCONFIG% -accepteula -h md5,sha256 -n -l&lt;BR /&gt;sc config %SERVBINARCH% start= auto&lt;/P&gt;&lt;P&gt;:updateconfig&lt;BR /&gt;xcopy %GLBSYSMONCONFIG% %SYSMONCONFIG% /y&lt;BR /&gt;chdir %SYSMONDIR%&lt;BR /&gt;%SYSMONBIN% -c %SYSMONCONFIG%&lt;BR /&gt;EXIT /B 0&lt;/P&gt;&lt;P&gt;:startsysmon&lt;BR /&gt;sc start %SERVBINARCH%&lt;BR /&gt;If "%ERRORLEVEL%" EQU "1060" (&lt;BR /&gt;GOTO installsysmon&lt;BR /&gt;) ELSE (&lt;BR /&gt;GOTO updateconfig&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 03:29:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-UF-not-executing-script-Sharing-Violation/m-p/607992#M25959</guid>
      <dc:creator>nick_currie</dc:creator>
      <dc:date>2022-08-03T03:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk UF not executing script - Sharing Violation</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-UF-not-executing-script-Sharing-Violation/m-p/607996#M25960</link>
      <description>&lt;P&gt;An executable file in your destination folder may be actively engaged in a process.&amp;nbsp; You can receive 'sharing violation' messages if you try to overwrite/rewrite that file while it is already in use.&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/20154980/false-sharing-violation-xcopy-error-message" target="_blank"&gt;https://stackoverflow.com/questions/20154980/false-sharing-violation-xcopy-error-message&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 05:46:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-UF-not-executing-script-Sharing-Violation/m-p/607996#M25960</guid>
      <dc:creator>dural_yyz</dc:creator>
      <dc:date>2022-08-03T05:46:59Z</dc:date>
    </item>
  </channel>
</rss>

