Files
Powershell-Scripts/Services Scripts/Service - Dell SupportAssist Service - Stop.ps1
T

25 lines
727 B
PowerShell
Raw Normal View History

2025-08-05 15:55:24 +00:00
<#
Author: Leng Yang
Company: UFS LLC
Date: 05-14-25
.Synopsis
Sets Dell SupportAssist service to manual startup and stops it.
.Modified
05-14-25 (LengY) - Original script created
#>
# Variables #
$service = Get-Service | Where-Object { $_.DisplayName -like "*dell supportassist*" } | Select-Object Name
# Functions #
# Start Script #
If ($service) {
Write-Host "Found $($service.name). Stopping service and setting to manual startup."
Set-Service -Name $service.name -StartupType Manual
Stop-Service -Name $service.name
Write-Host ""
Get-Service | Where-Object { $_.DisplayName -like "*dell supportassist*" } | Select -Property displayname, starttype, status
}
# End Script #