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!

Fall Into Learning with New Splunk Education Courses

Every month, Splunk Education releases new courses to help you branch out, strengthen your data science roots, ...

Super Optimize your Splunk Stats Searches: Unlocking the Power of tstats, TERM, and ...

By Martin Hettervik, Senior Consultant and Team Leader at Accelerate at Iver, Splunk MVPThe stats command is ...

How Splunk Observability Cloud Prevented a Major Payment Crisis in Minutes

Your bank's payment processing system is humming along during a busy afternoon, handling millions in hourly ...