Code: Alles auswählen
[Winbatch_uninstall_ps]
powershell.exe -Executionpolicy Bypass -Command Get-Package | Where-Object { $_.Name -eq "paint.net" } | Uninstall-Package
Es funktioniert jedoch sowas:
Code: Alles auswählen
[Winbatch_uninstall_ps]
powershell.exe -Executionpolicy Bypass -Command Get-Package
;oder
powershell.exe -Executionpolicy Bypass -Command Get-Process -ProcessName "opsi*"
Vielleicht hat jemand ähnliches schon gelöst?
Danke!
Viele Grüße