23 lines
502 B
PowerShell
23 lines
502 B
PowerShell
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"
|
|
}
|