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

Antworten
bourhis
Beiträge: 130
Registriert: 07 Nov 2012, 15:57

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

Beitrag 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.
Antworten