Upload files to "Services Scripts"
This commit is contained in:
@@ -0,0 +1,22 @@
|
|||||||
|
<#
|
||||||
|
Author: Leng Yang
|
||||||
|
Date: 06-15-25
|
||||||
|
|
||||||
|
.Synopsis
|
||||||
|
Sets Dell SupportAssist Remediation service startup type to disabled and stops the service.
|
||||||
|
.Modified
|
||||||
|
06-15-25 (LengY) - Original script created
|
||||||
|
06-16-25 (GabeK) - Code Reviewed
|
||||||
|
#>
|
||||||
|
|
||||||
|
$service = Get-Service | Where-Object { $_.DisplayName -like "*dell supportassist remediation*" } | Select-Object Name
|
||||||
|
|
||||||
|
# Start Script #
|
||||||
|
If ($service) {
|
||||||
|
Write-Host "Found $($service.name). Setting to disabled and stopping the service."
|
||||||
|
Set-Service -Name $service.name -StartupType Disabled
|
||||||
|
Stop-Service -Name $service.name
|
||||||
|
Write-Host ""
|
||||||
|
Get-Service | Where-Object { $_.DisplayName -like "*dell supportassist remediation*" } | Select -Property displayname, starttype, status
|
||||||
|
}
|
||||||
|
# End Script #
|
||||||
Reference in New Issue
Block a user