<?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: Can we install a universal forwarder on a 2016 Windows server with SCCM? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-install-a-universal-forwarder-on-a-2016-Windows-server/m-p/290328#M55393</link>
    <description>&lt;P&gt;I have done this with SCCM so yes it is very possible.&lt;/P&gt;

&lt;P&gt;Splunk Package with:&lt;BR /&gt;
"This package contains source files". Put said source files on a network location and point the data source to the source folder.&lt;BR /&gt;
Put the following in this folder:&lt;BR /&gt;
splunkforwarder--x64-release.msi&lt;BR /&gt;
install_splunk.bat&lt;BR /&gt;
org_all_deploymentclient (this is a folder)&lt;/P&gt;

&lt;P&gt;inside org_all_deploymentclient, put the following structure:&lt;/P&gt;

&lt;P&gt;org_all_deploymentclient&lt;/P&gt;

&lt;P&gt;--- local&lt;BR /&gt;
---- app.conf&lt;BR /&gt;
---- deploymentclient.conf&lt;BR /&gt;
---- outputs.conf&lt;/P&gt;

&lt;P&gt;inside app.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[install]
state = enabled

[package]
check_for_updates = false

[ui]
is_visible = false
is_manageable = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;inside deploymentclient.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[deployment-client]
clientName=$HOSTNAME

[target-broker:deploymentServer]
# Change the targetUri
targetUri = &amp;lt;fqdn to your deploymentserver&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;inside outputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout:server]
server=&amp;lt;fqdn to indexer&amp;gt;:&amp;lt;port&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Once you have this Package created, create a Program:&lt;BR /&gt;
Name: SplunkUF (name it whatever you want)&lt;BR /&gt;
command line: install_splunk.bat&lt;BR /&gt;
Run: hidden&lt;BR /&gt;
After running: no action required&lt;BR /&gt;
Program can run: whether or not a user is logged on&lt;/P&gt;

&lt;P&gt;inside install_splunk.bat:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;msiexec.exe /i "splunkforwarder-&amp;lt;splunkversion&amp;gt;-x64-release.msi" LAUNCHSPLUNK=0 AGREETOLICENSE=Yes INSTALLDIR="%ProgramFiles%\SplunkUniversalForwarder" SERVICESTARTTYPE=auto /quiet
xcopy "org_all_deploymentclient\*.conf" "%ProgramFiles%\SplunkUniversalForwarder\etc\system\" /s /e /i /y
for /F "tokens=3 delims=: " %%H in ('sc query "SplunkForwarder" ^| findstr "        STATE"') do (
  if /I "%%H" NEQ "RUNNING" (
   net start "SplunkForwarder"
  )
)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the second part of the script which starts the service if it isn't running is useful for upgrades, in case the service doesn't start.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 16:46:47 GMT</pubDate>
    <dc:creator>Lazarix</dc:creator>
    <dc:date>2020-09-29T16:46:47Z</dc:date>
    <item>
      <title>Can we install a universal forwarder on a 2016 Windows server with SCCM?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-install-a-universal-forwarder-on-a-2016-Windows-server/m-p/290327#M55392</link>
      <description>&lt;P&gt;Is it possible to get a UF installed on a 2016 Windows server with sccm or do we have to use a chef recipe?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 19:20:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-we-install-a-universal-forwarder-on-a-2016-Windows-server/m-p/290327#M55392</guid>
      <dc:creator>jdomin30</dc:creator>
      <dc:date>2017-10-06T19:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can we install a universal forwarder on a 2016 Windows server with SCCM?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-we-install-a-universal-forwarder-on-a-2016-Windows-server/m-p/290328#M55393</link>
      <description>&lt;P&gt;I have done this with SCCM so yes it is very possible.&lt;/P&gt;

&lt;P&gt;Splunk Package with:&lt;BR /&gt;
"This package contains source files". Put said source files on a network location and point the data source to the source folder.&lt;BR /&gt;
Put the following in this folder:&lt;BR /&gt;
splunkforwarder--x64-release.msi&lt;BR /&gt;
install_splunk.bat&lt;BR /&gt;
org_all_deploymentclient (this is a folder)&lt;/P&gt;

&lt;P&gt;inside org_all_deploymentclient, put the following structure:&lt;/P&gt;

&lt;P&gt;org_all_deploymentclient&lt;/P&gt;

&lt;P&gt;--- local&lt;BR /&gt;
---- app.conf&lt;BR /&gt;
---- deploymentclient.conf&lt;BR /&gt;
---- outputs.conf&lt;/P&gt;

&lt;P&gt;inside app.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[install]
state = enabled

[package]
check_for_updates = false

[ui]
is_visible = false
is_manageable = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;inside deploymentclient.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[deployment-client]
clientName=$HOSTNAME

[target-broker:deploymentServer]
# Change the targetUri
targetUri = &amp;lt;fqdn to your deploymentserver&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;inside outputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout:server]
server=&amp;lt;fqdn to indexer&amp;gt;:&amp;lt;port&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Once you have this Package created, create a Program:&lt;BR /&gt;
Name: SplunkUF (name it whatever you want)&lt;BR /&gt;
command line: install_splunk.bat&lt;BR /&gt;
Run: hidden&lt;BR /&gt;
After running: no action required&lt;BR /&gt;
Program can run: whether or not a user is logged on&lt;/P&gt;

&lt;P&gt;inside install_splunk.bat:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;msiexec.exe /i "splunkforwarder-&amp;lt;splunkversion&amp;gt;-x64-release.msi" LAUNCHSPLUNK=0 AGREETOLICENSE=Yes INSTALLDIR="%ProgramFiles%\SplunkUniversalForwarder" SERVICESTARTTYPE=auto /quiet
xcopy "org_all_deploymentclient\*.conf" "%ProgramFiles%\SplunkUniversalForwarder\etc\system\" /s /e /i /y
for /F "tokens=3 delims=: " %%H in ('sc query "SplunkForwarder" ^| findstr "        STATE"') do (
  if /I "%%H" NEQ "RUNNING" (
   net start "SplunkForwarder"
  )
)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the second part of the script which starts the service if it isn't running is useful for upgrades, in case the service doesn't start.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:46:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-we-install-a-universal-forwarder-on-a-2016-Windows-server/m-p/290328#M55393</guid>
      <dc:creator>Lazarix</dc:creator>
      <dc:date>2020-09-29T16:46:47Z</dc:date>
    </item>
  </channel>
</rss>

