Created
April 27, 2021 20:24
-
-
Save hurrifan1/3598bef9468fd82383fa8fe1162142f2 to your computer and use it in GitHub Desktop.
Stop/Start Qlik Services with PowerShell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# 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* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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