From 5b7cf4c7a2a5ecffb7335adb23e3e25fe0b03122 Mon Sep 17 00:00:00 2001 From: David Yoder Date: Tue, 25 Oct 2022 14:55:29 -0400 Subject: [PATCH] invoke Uninstall-MSI for removing some apps --- Uninstall-UnwantedDefaultApps.ps1 | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/Uninstall-UnwantedDefaultApps.ps1 b/Uninstall-UnwantedDefaultApps.ps1 index 801ceec..6cbbbbd 100644 --- a/Uninstall-UnwantedDefaultApps.ps1 +++ b/Uninstall-UnwantedDefaultApps.ps1 @@ -73,15 +73,10 @@ If ( IsWindowsBuild -ge 9200 ) } } Else { LogMsg "Cannot remove Appx packages because this endpoint is not running Windows 8 or higher" } -# Uninstall unwanted applications -LogMsg "Uninstalling: Dell SupportAssist" -Start-Process "msiexec.exe" -ArgumentList "/X{4F8A3BC3-641C-4B0D-AF46-EA3354016EA7} /qn /norestart" -Wait +# Uninstall Dell SupportAssist apps +$APP_NAME = "Dell*SupportAssist*" +Run-Script -LivePSScript Uninstall-MSI -LogMsg "Uninstalling: Dell SupportAssist Remediation" -Start-Process "msiexec.exe" -ArgumentList "/X{2674B8DB-D696-4F9D-8606-E13E9D119579} /qn /norestart" -Wait - -LogMsg "Uninstalling: Dell SupportAssist OS Recovery Plugin for Dell Update" -Start-Process "msiexec.exe" -ArgumentList "/X{08E7C8D5-F2B5-4F09-B0EA-F28913BEFDB0} /qn /norestart" -Wait - -LogMsg "Uninstalling: Dell Digital Delivery Services" -Start-Process "msiexec.exe" -ArgumentList "/X{E530ABB7-9DCC-421B-B751-484375E8374A} /qn /norestart" -Wait \ No newline at end of file +# Uninstall Dell SupportAssist apps +$APP_NAME = "Dell Digital Delivery*" +Run-Script -LivePSScript Uninstall-MSI