From 133db26fbf1cd4697946de4b0f4283e85de9369a Mon Sep 17 00:00:00 2001 From: aaron Date: Fri, 23 Feb 2024 10:30:45 +0000 Subject: [PATCH] Upload files to "/" --- Uninstall-DellSoftware.ps1 | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Uninstall-DellSoftware.ps1 diff --git a/Uninstall-DellSoftware.ps1 b/Uninstall-DellSoftware.ps1 new file mode 100644 index 0000000..973886e --- /dev/null +++ b/Uninstall-DellSoftware.ps1 @@ -0,0 +1,9 @@ +# Get all dell software +$dellSoftware = Get-WmiObject -Class Win32_Product | Where-Object Name -Match Dell #| Format-Table + +# Uninstall all Dell software except Power Manager +foreach ($software in $dellSoftware) { + if ($software.Name -ne "Dell Power Manager Service") { + & msiexec /x $software.IdentifyingNumber | Out-Null + } +} \ No newline at end of file