Getting Data In

How do I edit my code for a universal forwarder silent installation on Windows via CLI?

timospringer
New Member

Hello,

This is my code for installing and updating the UniversalForwarder via the command line.

msiexec.exe /i "\\splunkforwarder-6.2.4-271043-x64-release.msi" AGREETOLICENSE=Yes /quiet

This works perfectly fine for installing and updating the forwarder.
However, it doesn't work when the same version of the UniversalForwarder is already installed. After executing, I can't even find the UniversalForwarder in my Program Files.

Does anyone know how to optimize the code?

0 Karma

JensT
Communicator

Hi,

seems like you want a forced install.
There are several options. Check:
https://technet.microsoft.com/en-us/library/cc759262(v=ws.10).aspx
https://support.microsoft.com/en-us/kb/227091

Regards,
Jens

0 Karma

timospringer
New Member

Hi Jens,

thank you for your answer! It solved one problem, but made another. 😉

My problem is, that this command doesn't work when the UniversalForwarder isn't installed on the machine.
I need a script where the Forwarder is installed when it's not on the machine but doesn't make problems when it's already installed.

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...