ps/Modules/Alkami.PowerShell.Services/Public/Stop-ServicesOnly.ps1

23 lines
502 B
PowerShell
Raw Permalink Normal View History

2023-05-30 22:51:22 -07:00
function Stop-ServicesOnly {
<#
.SYNOPSIS
Stops Installed Alkami Windows Services
#>
[CmdletBinding()]
Param(
[Parameter(Mandatory=$false)]
[switch]$skipSubscriptionService
)
$logLead = (Get-LogLeadName);
$servicesToStop = Get-ServicesToStop -skipChocolateyServices -skipSubscriptionService:$skipSubscriptionService.IsPresent;
if ($servicesToStop)
{
Stop-ServicesInParallel $servicesToStop;
}
Write-Output "$logLead : Completed"
}