Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more

Qlik Sense: Sample PS scripts to Stop and Start services

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Alexis_Touet
Former Employee
Former Employee

Qlik Sense: Sample PS scripts to Stop and Start services

Last Update:

Nov 2, 2021 5:17:23 AM

Updated By:

Alexis_Touet

Created date:

Nov 2, 2021 5:12:53 AM

Please find below Powershell scripts examples to Stop and Start Qlik Sense services.  

1.  Stop Services

a) Stop QS services on non-central node or on a central node where QRD (Qlik Sense Repository database)  is not installed

# Stop Qlik Sense Services (without QRD)

Stop-Service -DisplayName 'Qlik Logging Service' -Force -PassThru -InformationAction Stop
Stop-Service -DisplayName 'Qlik Sense Printing Service' -Force -PassThru -InformationAction Stop 
Stop-Service -DisplayName 'Qlik Sense Scheduler Service' -Force -PassThru -InformationAction Stop
Stop-Service -DisplayName 'Qlik Sense Proxy Service' -Force -PassThru -InformationAction Stop
Stop-Service -DisplayName 'Qlik Sense Engine Service' -Force -PassThru -InformationAction Stop
Stop-Service -DisplayName 'Qlik Sense Repository Service' -Force -PassThru -InformationAction Stop
Stop-Service -DisplayName 'Qlik Sense Service Dispatcher' -Force -PassThru -InformationAction Stop

 

b) Stop QS services on Central Node where (Qlik Sense Repository database) QRD is installed 

 

# Stop Qlik Sense Services (with QRD)

Stop-Service -DisplayName 'Qlik Logging Service' -Force -PassThru -InformationAction Stop
Stop-Service -DisplayName 'Qlik Sense Printing Service' -Force -PassThru -InformationAction Stop 
Stop-Service -DisplayName 'Qlik Sense Scheduler Service' -Force -PassThru -InformationAction Stop
Stop-Service -DisplayName 'Qlik Sense Proxy Service' -Force -PassThru -InformationAction Stop
Stop-Service -DisplayName 'Qlik Sense Engine Service' -Force -PassThru -InformationAction Stop
Stop-Service -DisplayName 'Qlik Sense Repository Service' -Force -PassThru -InformationAction Stop
Stop-Service -DisplayName 'Qlik Sense Service Dispatcher' -Force -PassThru -InformationAction Stop
Stop-Service -DisplayName 'Qlik Sense Repository Database' -Force -PassThru -InformationAction Stop

 


c) Force to stop services stuck in "stopping" Status

In case one of the QS services is stuck at "stopping" you can use the following script to force stop the service. 

 

# Force stop service in stopping status

$Services = Get-WmiObject -Class win32_service -Filter "state = 'stop pending'"
if ($Services) {
    foreach ($service in $Services) {
        try {
            Stop-Process -Id $service.processid -Force -PassThru -ErrorAction Stop
        }
        catch {
            Write-Warning -Message "Unexpected Error. Error details: $_.Exception.Message"
        }
    }
}
else {
    Write-Output "There are currently no services with a status of 'Stopping'."
}

 


2. Start services

a) Start QS services on non-central node or on a central node where QRD (Qlik Sense Repository database)  is not installed

 

# Start Qlik Sense Services (Without QRD)

Start-Service -DisplayName 'Qlik Sense Service Dispatcher' -PassThru
Start-Service -DisplayName 'Qlik Sense Repository Service' -PassThru 
Start-Service -DisplayName 'Qlik Sense Proxy Service'  -PassThru 
Start-Service -DisplayName 'Qlik Sense Engine Service' -PassThru 
Start-Service -DisplayName 'Qlik Sense Scheduler Service' -PassThru 
Start-Service -DisplayName 'Qlik Sense Printing Service' -PassThru 
Start-Service -DisplayName 'Qlik Logging Service'  -PassThru 

 


b) QS services on Central Node where (Qlik Sense Repository database) QRD is installed 

 

# Start Qlik Sense Services (with QRD)

Start-Service -DisplayName 'Qlik Sense Repository Database'  -PassThru 
Start-Service -DisplayName 'Qlik Sense Service Dispatcher' -PassThru
Start-Service -DisplayName 'Qlik Sense Repository Service' -PassThru 
Start-Service -DisplayName 'Qlik Sense Proxy Service'  -PassThru 
Start-Service -DisplayName 'Qlik Sense Engine Service' -PassThru 
Start-Service -DisplayName 'Qlik Sense Scheduler Service' -PassThru 
Start-Service -DisplayName 'Qlik Sense Printing Service' -PassThru 
Start-Service -DisplayName 'Qlik Logging Service'  -PassThru 

 

 

Environment

Qlik Sense Enterprise on Windows 

 

The information in this article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.

Related Content 

Manual Start and Stop order of Qlik Sense services

Labels (2)
Contributors
Version history
Last update:
‎2021-11-02 05:17 AM
Updated by: