<?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: Splunk USB Control in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-USB-Control/m-p/494224#M99892</link>
    <description>&lt;P&gt;Hi @mesutu,&lt;BR /&gt;
could you share your inputs.conf file where you launch your script?&lt;BR /&gt;
What Splunk version are you using and on what OS?&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Wed, 27 Nov 2019 16:29:30 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2019-11-27T16:29:30Z</dc:date>
    <item>
      <title>Splunk USB Control</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-USB-Control/m-p/494223#M99891</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;We use Splunk to manage usb devices. We write script which find usb's serial number and check in our database if it is registered splunk run a command which is &lt;STRONG&gt;devcon.exe update "c:\Windows\inf\disk.inf" "USBSTOR\GenDisk"&lt;/STRONG&gt; Our script work properly in windows 7 and 8.1 but not work in windows10. When I run bat file manually its work. When I check the logs everything is seen right. &lt;/P&gt;

&lt;P&gt;I dont understand where the problem is. Script is right because when i run manually , usb devices is plugged. &lt;/P&gt;

&lt;P&gt;Can you help me ?&lt;/P&gt;

&lt;P&gt;Thank you &lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 13:16:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-USB-Control/m-p/494223#M99891</guid>
      <dc:creator>mesutu</dc:creator>
      <dc:date>2019-11-27T13:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk USB Control</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-USB-Control/m-p/494224#M99892</link>
      <description>&lt;P&gt;Hi @mesutu,&lt;BR /&gt;
could you share your inputs.conf file where you launch your script?&lt;BR /&gt;
What Splunk version are you using and on what OS?&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 16:29:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-USB-Control/m-p/494224#M99892</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-11-27T16:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk USB Control</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-USB-Control/m-p/494225#M99893</link>
      <description>&lt;P&gt;Show us your configuration files.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 17:57:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-USB-Control/m-p/494225#M99893</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-27T17:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk USB Control</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-USB-Control/m-p/494226#M99894</link>
      <description>&lt;P&gt;hi @gcusello,&lt;/P&gt;

&lt;P&gt;Our splunk version is 7.2.1 and install in CentOS 7 64 bit. &lt;/P&gt;

&lt;P&gt;Our inputs.conf is ;&lt;/P&gt;

&lt;P&gt;[script://.\bin\checkUSB.bat"]&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
interval = 3&lt;BR /&gt;
sourcetype = EndPoint:USB&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2019 07:28:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-USB-Control/m-p/494226#M99894</guid>
      <dc:creator>mesutu</dc:creator>
      <dc:date>2019-11-28T07:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk USB Control</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-USB-Control/m-p/494227#M99895</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
when I check the logs of script, it says usb has been plugged but actually it is not. Why it is not working in windows 10. &lt;/P&gt;

&lt;H2&gt;Our script log is ;&lt;/H2&gt;

&lt;P&gt;[ 27/11/2019 17:15:13 ] Info: Working Directory: C:\Windows\system32&lt;BR /&gt;
[ 27/11/2019 17:15:13 ] Info: Script Name: checkUSB.vbs&lt;BR /&gt;
[ 27/11/2019 17:15:13 ] Debug: C:\Windows\System32\cscript.exe  "C:\Program Files\SplunkUniversalForwarder\etc\apps\windows\bin\checkUSB.vbs"&lt;BR /&gt;
[ 27/11/2019 17:15:13 ] Info: 10.22.11.10&lt;BR /&gt;
[ 27/11/2019 17:15:13 ] Info: &lt;A href="http://10.22.5.11/ossec-wui/site/usbcheck.php?serialNumbers=" target="_blank"&gt;http://10.22.5.11/ossec-wui/site/usbcheck.php?serialNumbers=&lt;/A&gt;&lt;BR /&gt;
[ 27/11/2019 17:15:13 ] Debug: Functions are defining&lt;BR /&gt;
[ 27/11/2019 17:15:13 ] Debug: Operating System: AMD64&lt;BR /&gt;
[ 27/11/2019 17:15:13 ] Debug: PNPDevice: @USBSTOR\DISK&amp;amp;VEN_KINGSTON&amp;amp;PROD_DATATRAVELER_2.0&amp;amp;REV_PMAP\1C6F654E59A2EE81C92800DE&amp;amp;0   PNPDeviceId: 1C6F654E59A2EE81C92800DE&amp;amp;0&lt;BR /&gt;
[ 27/11/2019 17:15:13 ] Debug: uniqueID     1C6F654E59A2EE81C92800DE&lt;BR /&gt;
[ 27/11/2019 17:15:13 ] Debug: PNPDevice: @USBSTOR\DISK&amp;amp;VEN_SANDISK&amp;amp;PROD_CRUZER_SWITCH&amp;amp;REV_1.27\20044526921DB721B6DD&amp;amp;0   PNPDeviceId: 20044526921DB721B6DD&amp;amp;0&lt;BR /&gt;
[ 27/11/2019 17:15:13 ] Debug: uniqueID     20044526921DB721B6DD&lt;BR /&gt;
[ 27/11/2019 17:15:13 ] Debug: Check From:  &lt;A href="http://10.22.5.11/ossec-wui/site/usbcheck.php?serialNumbers=;1C6F654E59A2EE81C92800DE;20044526921DB721B6DD" target="_blank"&gt;http://10.22.5.11/ossec-wui/site/usbcheck.php?serialNumbers=;1C6F654E59A2EE81C92800DE;20044526921DB721B6DD&lt;/A&gt;&lt;BR /&gt;
[ 27/11/2019 17:15:13 ] Debug: ossecResponse:  1C6F654E59A2EE81C92800DE;20044526921DB721B6DD&lt;BR /&gt;
[ 27/11/2019 17:15:13 ] Debug: Remove or Plug USB&lt;BR /&gt;
[ 27/11/2019 17:15:13 ] Debug: 1C6F654E59A2EE81C92800DE&amp;amp;0 --- @USBSTOR\DISK&amp;amp;VEN_KINGSTON&amp;amp;PROD_DATATRAVELER_2.0&amp;amp;REV_PMAP\1C6F654E59A2EE81C92800DE&amp;amp;0&lt;BR /&gt;
[ 27/11/2019 17:15:13 ] Debug: Command: "C:\Program Files\SplunkUniversalForwarder\etc\apps\windows\bin\devcon_x64.exe" status "@USBSTOR\DISK&amp;amp;VEN_KINGSTON&amp;amp;PROD_DATATRAVELER_2.0&amp;amp;REV_PMAP\1C6F654E59A2EE81C92800DE&amp;amp;0"&lt;BR /&gt;
[ 27/11/2019 17:15:13 ] Debug: Command Response: USBSTOR\DISK&amp;amp;VEN_KINGSTON&amp;amp;PROD_DATATRAVELER_2.0&amp;amp;REV_PMAP\1C6F654E59A2EE81C92800DE&amp;amp;0    Name: Kingston DataTraveler 2.0 USB Device    The device has the following problem: 011 matching device(s) found.&lt;BR /&gt;
[ 27/11/2019 17:15:13 ] Debug: Driver is prevented by Policy&lt;BR /&gt;
[ 27/11/2019 17:15:13 ] Debug: USB is pluging @USBSTOR\DISK&amp;amp;VEN_KINGSTON&amp;amp;PROD_DATATRAVELER_2.0&amp;amp;REV_PMAP\1C6F654E59A2EE81C92800DE&amp;amp;0&lt;BR /&gt;
[ 27/11/2019 17:15:13 ] Debug: Command: "C:\Program Files\SplunkUniversalForwarder\etc\apps\windows\bin\devcon_x64.exe" update "c:\Windows\inf\disk.inf" "USBSTOR\GenDisk"&lt;BR /&gt;
[ 27/11/2019 17:15:13 ] Debug: Command Response: Updating drivers for USBSTOR\GenDisk from c:\Windows\inf\disk.inf.Drivers installed successfully.&lt;BR /&gt;
[ 27/11/2019 17:15:13 ] Debug: &lt;STRONG&gt;USB has been plugged&lt;/STRONG&gt; @USBSTOR\DISK&amp;amp;VEN_KINGSTON&amp;amp;PROD_DATATRAVELER_2.0&amp;amp;REV_PMAP\1C6F654E59A2EE81C92800DE&amp;amp;0&lt;/P&gt;

&lt;H2&gt;[ 27/11/2019 17:15:13 ] Debug: Script Will Sleep 10 seconds&lt;/H2&gt;

&lt;P&gt;Thank you&lt;/P&gt;

&lt;P&gt;Best Regards&lt;/P&gt;

&lt;P&gt;Mesut,&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:13:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-USB-Control/m-p/494227#M99895</guid>
      <dc:creator>mesutu</dc:creator>
      <dc:date>2020-09-30T03:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk USB Control</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-USB-Control/m-p/494228#M99896</link>
      <description>&lt;P&gt;This got clipped; come back and re-edit it.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 04:15:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-USB-Control/m-p/494228#M99896</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-29T04:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk USB Control</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-USB-Control/m-p/494229#M99897</link>
      <description>&lt;P&gt;Hi woodcock,&lt;/P&gt;

&lt;P&gt;[scr.pt://.\bin\checkUSB.bat"]&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
interval = 3&lt;BR /&gt;
sourcetype = EndPoint:USB&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 06:27:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-USB-Control/m-p/494229#M99897</guid>
      <dc:creator>mesutu</dc:creator>
      <dc:date>2019-11-29T06:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk USB Control</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-USB-Control/m-p/494230#M99898</link>
      <description>&lt;P&gt;Hi @mesutu,&lt;BR /&gt;
reading what you say it seems to me that the problem is in the script and on Windows 10 has a different behavior than on Windows 7.&lt;BR /&gt;
In any case, if you could share your inputs.conf, I could help you by checking the configuration: in a previous comment there is only "[".&lt;BR /&gt;
To share code use the "Code Sample" button, the one with 101010.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 08:25:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-USB-Control/m-p/494230#M99898</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-11-29T08:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk USB Control</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-USB-Control/m-p/494231#M99899</link>
      <description>&lt;P&gt;Hi, @gcusello &lt;/P&gt;

&lt;P&gt;Thank you for information. Inputs.conf is ;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[script://.\bin\checkUSB.bat"]
disabled = 0
interval = 3
sourcetype = EndPoint:USB
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 08:28:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-USB-Control/m-p/494231#M99899</guid>
      <dc:creator>mesutu</dc:creator>
      <dc:date>2019-11-29T08:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk USB Control</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-USB-Control/m-p/494232#M99900</link>
      <description>&lt;P&gt;This is a &lt;CODE&gt;Windows&lt;/CODE&gt; problem, not a &lt;CODE&gt;Splunk&lt;/CODE&gt; problem.  You are asking in the wrong forum.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2019 19:44:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-USB-Control/m-p/494232#M99900</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-29T19:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk USB Control</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-USB-Control/m-p/494233#M99901</link>
      <description>&lt;P&gt;Hi @mesutu,&lt;BR /&gt;
as @woodcook said, it's a windows problem, debug the problem executing the script!&lt;BR /&gt;
Anyway, why there a quote in the script?&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 30 Nov 2019 15:51:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-USB-Control/m-p/494233#M99901</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-11-30T15:51:20Z</dc:date>
    </item>
  </channel>
</rss>

