From b891210816f98378a7727653ef42dc59c1c86980 Mon Sep 17 00:00:00 2001 From: Gabe Date: Tue, 5 Aug 2025 15:54:04 +0000 Subject: [PATCH] Upload files to "Services Scripts" --- ...ice - Start Dell SupportAssist Service.ps1 | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Services Scripts/Service - Start Dell SupportAssist Service.ps1 diff --git a/Services Scripts/Service - Start Dell SupportAssist Service.ps1 b/Services Scripts/Service - Start Dell SupportAssist Service.ps1 new file mode 100644 index 0000000..d03360f --- /dev/null +++ b/Services Scripts/Service - Start Dell SupportAssist Service.ps1 @@ -0,0 +1,25 @@ +<# +Author: Leng Yang +Date: 05-14-25 + +.Synopsis +Sets Dell SupportAssist service to automatic startup and attempts to start it. + +.Modified +05-14-25 (LengY) - Original script created +05-15-25 (GabeK) - Code Reviewed +#> + +$service = Get-Service | Where-Object { $_.DisplayName -like "*dell supportassist*" } | Select-Object Name + +# Start Script # +If ($service) { + Write-Host "Found $($service.name). Starting service and setting to automatic startup." + Set-Service -Name $service.name -StartupType Automatic + Start-Service -Name $service.name -ErrorAction SilentlyContinue + Write-Host "" + Get-Service | Where-Object { $_.DisplayName -like "*dell supportassist*" } | Select -Property displayname, starttype, status + Write-Host "" + Write-Host "May need to reboot to start service." +} +# End Script # \ No newline at end of file