<?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 Pushing Powershell Scripts out via Universal Forwarder - Specifying specific hosts in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Pushing-Powershell-Scripts-out-via-Universal-Forwarder/m-p/712702#M117710</link>
    <description>&lt;P&gt;I would like to run powershell scripts and commands out to my endpoints via the Universal Forwarder, but based on the script or command i would like to specifiy which endpoint it goes to/which it collects an output from. I have attempted this with the following entry in the local inputs.conf, but it still ran on all the endpoints.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;[powershell://find_version]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;script = [powershell command here]&lt;/P&gt;&lt;P&gt;host = [XXX]&lt;/P&gt;&lt;P&gt;index = [index here]&lt;/P&gt;&lt;P&gt;schedule = [cron here]&lt;/P&gt;&lt;P&gt;disabled = 0&lt;/P&gt;</description>
    <pubDate>Thu, 27 Feb 2025 15:15:39 GMT</pubDate>
    <dc:creator>kjehth93</dc:creator>
    <dc:date>2025-02-27T15:15:39Z</dc:date>
    <item>
      <title>Pushing Powershell Scripts out via Universal Forwarder - Specifying specific hosts</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Pushing-Powershell-Scripts-out-via-Universal-Forwarder/m-p/712702#M117710</link>
      <description>&lt;P&gt;I would like to run powershell scripts and commands out to my endpoints via the Universal Forwarder, but based on the script or command i would like to specifiy which endpoint it goes to/which it collects an output from. I have attempted this with the following entry in the local inputs.conf, but it still ran on all the endpoints.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;[powershell://find_version]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;script = [powershell command here]&lt;/P&gt;&lt;P&gt;host = [XXX]&lt;/P&gt;&lt;P&gt;index = [index here]&lt;/P&gt;&lt;P&gt;schedule = [cron here]&lt;/P&gt;&lt;P&gt;disabled = 0&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 15:15:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Pushing-Powershell-Scripts-out-via-Universal-Forwarder/m-p/712702#M117710</guid>
      <dc:creator>kjehth93</dc:creator>
      <dc:date>2025-02-27T15:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Pushing Powershell Scripts out via Universal Forwarder - Specifying specific hosts</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Pushing-Powershell-Scripts-out-via-Universal-Forwarder/m-p/712703#M117711</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/273094"&gt;@kjehth93&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to specify which hosts this goes to, you probably need to look at your Deployment Server configuration - are you already using this to deploy an app with the inputs.conf in?&lt;/P&gt;&lt;P&gt;Place the app in /opt/splunk/etc/deployment-apps/&amp;lt;yourAppName&amp;gt;&lt;/P&gt;&lt;P&gt;Go to &lt;A href="https://yourSplunkInstance/en-US/manager/system/deploymentserver" target="_blank"&gt;https://yourSplunkInstance/en-US/manager/system/deploymentserver&lt;/A&gt;&lt;/P&gt;&lt;P&gt;On the "Server Class" tab select "New Server Class", and give it a name. Then proceed to add your App, and then head to add Clients.&lt;/P&gt;&lt;P&gt;When adding clients you can use wildcards alongwith IPs and/or hostnames in an allow/deny approach to target the hosts you'd like to deploy this inputs.conf to.&lt;/P&gt;&lt;P&gt;Please let me know how you get on and consider accepting this answer or adding karma this answer if it has helped.&lt;BR /&gt;Regards&lt;/P&gt;&lt;P&gt;Will&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 15:44:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Pushing-Powershell-Scripts-out-via-Universal-Forwarder/m-p/712703#M117711</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-02-27T15:44:27Z</dc:date>
    </item>
  </channel>
</rss>

