<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article Qlik Sense: Sample PS scripts to Stop  and Start services in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Sample-PS-scripts-to-Stop-and-Start-services/ta-p/1854549</link>
    <description>&lt;P&gt;Please find below Powershell scripts examples to Stop and Start Qlik Sense services.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp; Stop Services&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;a) Stop QS services on non-central node or on a central node where QRD (Qlik Sense Repository database)&amp;nbsp; is not installed&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;LI-CODE lang="markup"&gt;# 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&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;b) Stop QS services on Central Node where (Qlik Sense Repository database) QRD is installed&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;# 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&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;BR /&gt;c) Force to stop services stuck in "stopping" Status&lt;/P&gt;
&lt;P&gt;In case one of the QS services is stuck at "stopping" you can use the following script to force stop the service.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;# 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'."
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;2. Start services&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;a) Start QS services on non-central node or on a central node where QRD (Qlik Sense Repository database)&amp;nbsp; is not installed&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;# 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 &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;BR /&gt;b)&amp;nbsp;QS services on Central Node where (Qlik Sense Repository database) QRD is installed&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;# 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 

&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;Environment&lt;/H4&gt;
&lt;P&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise on Windows" id="qlikSenseEnterpriseWindows"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="font-style: italic;"&gt;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.&lt;/P&gt;
&lt;H3&gt;Related Content&amp;nbsp;&lt;/H3&gt;
&lt;P&gt;&lt;A title="Manual Start and Stop order of Qlik Sense services" href="https://community.qlik.com/t5/Knowledge/Manual-Start-and-Stop-order-of-Qlik-Sense-services/ta-p/1713773" target="_self"&gt;&lt;SPAN class="lia-link-navigation child-thread lia-link-disabled"&gt;Manual Start and Stop order of Qlik Sense services&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Nov 2021 09:17:23 GMT</pubDate>
    <dc:creator>Alexis_Touet</dc:creator>
    <dc:date>2021-11-02T09:17:23Z</dc:date>
    <item>
      <title>Qlik Sense: Sample PS scripts to Stop  and Start services</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Sample-PS-scripts-to-Stop-and-Start-services/ta-p/1854549</link>
      <description>&lt;P&gt;Please find below Powershell scripts examples to Stop and Start Qlik Sense services.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp; Stop Services&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;a) Stop QS services on non-central node or on a central node where QRD (Qlik Sense Repository database)&amp;nbsp; is not installed&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;LI-CODE lang="markup"&gt;# 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&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;b) Stop QS services on Central Node where (Qlik Sense Repository database) QRD is installed&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;# 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&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;BR /&gt;c) Force to stop services stuck in "stopping" Status&lt;/P&gt;
&lt;P&gt;In case one of the QS services is stuck at "stopping" you can use the following script to force stop the service.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;# 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'."
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;2. Start services&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;a) Start QS services on non-central node or on a central node where QRD (Qlik Sense Repository database)&amp;nbsp; is not installed&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;# 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 &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;BR /&gt;b)&amp;nbsp;QS services on Central Node where (Qlik Sense Repository database) QRD is installed&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;# 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 

&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;Environment&lt;/H4&gt;
&lt;P&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise on Windows" id="qlikSenseEnterpriseWindows"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="font-style: italic;"&gt;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.&lt;/P&gt;
&lt;H3&gt;Related Content&amp;nbsp;&lt;/H3&gt;
&lt;P&gt;&lt;A title="Manual Start and Stop order of Qlik Sense services" href="https://community.qlik.com/t5/Knowledge/Manual-Start-and-Stop-order-of-Qlik-Sense-services/ta-p/1713773" target="_self"&gt;&lt;SPAN class="lia-link-navigation child-thread lia-link-disabled"&gt;Manual Start and Stop order of Qlik Sense services&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 09:17:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Sense-Sample-PS-scripts-to-Stop-and-Start-services/ta-p/1854549</guid>
      <dc:creator>Alexis_Touet</dc:creator>
      <dc:date>2021-11-02T09:17:23Z</dc:date>
    </item>
  </channel>
</rss>

