Qlik Sense Admin Courses:
_____________________________________________
Qlik Sense Server Pro Course Bundle: https://www.howdash.com/courses/qlik-...
Backup, Upgrade, and Recover Qlik Sense: https://www.howdash.com/courses/backu...
Qlik Sense Security: https://www.howdash.com/courses/qlik-...
Deploy and Configure Qlik Sense: https://www.howdash.com/courses/deplo...
Windows Server for Qlik Sense Admins: https://www.howdash.com/courses/windo...
Script Used in the Video:
_________________________
param (
[Parameter(Mandatory = $false)]
[switch]
$SkipRepositoryDatabaseService
)
Stop-Service -Name QlikSenseEngineService, QlikSensePrintingService, QlikSenseProxyService, QlikSenseSchedulerService -PassThru
Stop-Service -Name QlikSenseRepositoryService -PassThru
Stop-Service -Name QlikSenseServiceDispatcher -PassThru
if ($SkipRepositoryDatabaseService -eq $false) {
Get-Service -Name "postgresql*", 'QlikSenseRepositoryDatabase' -ErrorAction SilentlyContinue | Stop-Service -PassThru
}
Join howdash Community:
__________________________
LinkedIn: / howdashllc
Facebook: / howdashllc
Description:
___________
🎁 Welcome to 25 days of QlikMas! Each day I'll unwrap one quick Qlik Sense server admin lesson you can learn in under fifteen minutes. Today, we'll enhance a PowerShell script used to stop Qlik Sense services that we created yesterday by adding a parameter that lets you skip stopping of the Qlik Sense Repository Database service when needed. You'll learn how to create and use a PowerShell switch parameter, apply conditional logic, and safely control which services are stopped without creating duplicate scripts.
Perfect for Qlik Sense administrators who want more flexible, reliable automation when managing server services and maintenance tasks.
📅 Come back tomorrow for Day 17 of QlikMas where I'll share more Qlik Sense admin tips and insights!
Chapters:
_________
0:00 Intro
0:25 What is a Parameter in PowerShell
0:39 Add Parameter
2:04 Use Parameter in the Script
3:06 Test Stopping Services with Parameter
4:52 Test Stopping Services without Parameter
5:51 Outro