从PowerShell卸载产品

Mur*_*har 1 powershell guid uninstall

如何使用产品的guid卸载产品

我试过这个

msiexec /x {guid}
Run Code Online (Sandbox Code Playgroud)

但我无法卸载该产品

我用的时候工作正常

Wmic product where identifyingnumber={guid} call uninstall
Run Code Online (Sandbox Code Playgroud)

Avs*_*lom 8

$WMI = Get-WmiObject win32_product -Filter 'IdentifyingNumber = "{guid}"'
$WMI.Uninstall()
Run Code Online (Sandbox Code Playgroud)