Seite 1 von 1

Howto use a "winget" command via "Opsi" ?

Verfasst: 23 Okt 2025, 14:59
von bourhis
Hi,

if I execute interactively in a command or powershell prompt :

Code: Alles auswählen

winget uninstall "windows web experience pack" --silent --accept-source-agreements --disable-interactivity
the widget is properly (and silently) uninstall.

If I try to do it in a [Dosbatch] or [ExecWith_powershell] Opsi section I see in "log" file an error message stating that "winget" cannot be found.

Is there a solution ?

Regards.