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