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!

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...