Skip to content

Instantly share code, notes, and snippets.

@levi-turner
Created December 29, 2017 21:43
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 levi-turner/a0a0c64ddc2729c1f5ac8eb5b733db16 to your computer and use it in GitHub Desktop.
Save levi-turner/a0a0c64ddc2729c1f5ac8eb5b733db16 to your computer and use it in GitHub Desktop.
Stop Qlik Sense Services in Powershell
#-----------------------------------------------------------------------
#
# Script Name: qlik_sense_service-stop.ps1
# Description: This will stop Qlik Sense Services
# Version Date Author Change Notes
# 0.1 2017-12-20 Levi Turner Initial Version
#-----------------------------------------------------------------------
Get-Service QlikSenseSchedulerService -ComputerName localhost | Stop-Service
Get-Service QlikSenseEngineService -ComputerName localhost | Stop-Service
Get-Service QlikSensePrintingService -ComputerName localhost | Stop-Service
Get-Service QlikSenseProxyService -ComputerName localhost | Stop-Service
Get-Service QlikSenseServiceDispatcher -ComputerName localhost | Stop-Service
Get-Service QlikSenseRepositoryService -ComputerName localhost | Stop-Service
Get-Service QlikLoggingService -ComputerName localhost | Stop-Service
Get-Service QlikSenseRepositoryDatabase -ComputerName localhost | Stop-Service
@jpjustus
Copy link

jpjustus commented Oct 7, 2021

Hi Levi - Thanks for the script. Do you have any updates to the script, possibly on any service addition?
Also, do you have an continuation to this script to start the services after stopping?

Thanks,
John

@levi-turner
Copy link
Author

No real updates. I use this for personal use so infrequently it isn't worth the effort to make it a bit more robust. I can just run it again!

If I was going to harden it, I would integrate something like this https://stackoverflow.com/a/6677226. There are instances where services can get hung. This is especially true for the Engine service which needs to dump apps from RAM and this can take a minute or two in busy / large environments.

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