Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hurrifan1/3598bef9468fd82383fa8fe1162142f2 to your computer and use it in GitHub Desktop.
Save hurrifan1/3598bef9468fd82383fa8fe1162142f2 to your computer and use it in GitHub Desktop.
Stop/Start Qlik Services with PowerShell
<# Start/Stop Qlik services in correct order:
1. Qlik Sense Repository Database (QRD)
2. Qlik Sense logging service
3. Qlik Sense Service Dispatcher (QSD)
4. Qlik Sense Repository Service (QRS)
...and in no particular order...
5. Qlik Sense Proxy Service (QPS)
6. Qlik Sense Engine Service (QES)
7. Qlik Sense Scheduler Service (QSS)
8. Qlik Sense Printing Service (QPR)
#>
# Store preferred order in an array
$orderedServices = @(
"QlikSenseRepositoryDatabase"
, "QlikLoggingService"
, "QlikSenseServiceDispatcher"
, "QlikSenseRepositoryService"
, "QlikSenseProxyService"
, "QlikSenseEngineService"
, "QlikSenseSchedulerService"
, "QlikSensePrintingService"
, "Qlik Web Connectors"
)
# Start/Stop the services in order
foreach ($srv in $orderedServices) { Start-Service -Name $srv }
# foreach ($srv in $orderedServices) { Stop-Service -Name $srv -Force}
# Check the status of the Qlik services
Get-Service -Name *qlik*
@jpjustus
Copy link

jpjustus commented Oct 7, 2021

Hi - Thanks for the script. I would like to stop and then start the services as part of weekly schedule. Also, I have 3 nodes that I want to stop/start. In addition, after starting the services and checking that the services are running on all the 3 nodes, I wanted to send an email to few people. Can you please provide an updated script to accomplish this?
Thanks,
John

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment