[wpkg-users] In memory of WMIC...
Marco Gaiarin
gaio at lilliput.linux.it
Tue Jan 27 18:32:27 CET 2026
In my recipes i've used sometime some WMIC query, and now Microsoft have
totally deprecated it; in the latest Win11 24H2 upgrade i got, i can enable
the WMIC feature, but keeps in a 'Staged' state and does not work.
Google halped me to port some query from WMIC to powershell, but i've not
found a way to port some query like:
wmic product where "Name like 'Adobe Acrobat Reader % MUI'" call uninstall /nointeractive
i use query like this in some recipes to do some 'cleanup' before installing
some precise software version.
I've found the query part, as:
Get-CimInstance -Class Win32_Product | Where-Object { $_.Name -eq "Adobe Acrobat Reader*" }
but how to call the uninstall part, with silent option?
Thanks.
PS: i've tried:
Get-Package -Name "Adobe Acrobat Reader*" | Uninstall-Package -Force
and seems to work at least for MSI, but something like this:
Get-Package -Name "BCUninstaller*" | Uninstall-Package -Force
does not work... does nothing...
--
More information about the wpkg-users
mailing list