Deployment Architecture

"Splunk.exe restart" after "splunk clone-prep-clear-config"

Brian2024
New Member

For non-persistent Instant-clones using VMware's clone-prep I have installed the UF with the launchsplunk=0 onto the master/gold image. The I run "splunk clone-prep-clear-config", set the service to manual so it doesn't start automatically on the master/gold image and publishing the desktops. Then I have a scheduled task that runs a few minutes after the user logons the calls an elevated command to "splunk.exe restart" to erase the GUID and generate a new GUID prior to the splunkd service starting. 

Is there a way for the process that this invokes to run silently? ie no pop-up screenimage001.png

Labels (1)
0 Karma

marnall
Motivator

It seems like this is an issue with the scheduled task settings.

To make the process run in the background, you could set it to "Run whether user is logged in or not", or you could set it to run as the SYSTEM user.

You could also try using powershell to run a bat file containing your command(s):

powershell "start <executable path> -WindowStyle Hidden"

 

0 Karma
Get Updates on the Splunk Community!

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Your Voice Matters! Help Us Shape the New Splunk Lantern Experience

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Building Momentum: Splunk Developer Program at .conf25

At Splunk, developers are at the heart of innovation. That’s why this year at .conf25, we officially launched ...