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.

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

Verfasst: 17 Nov 2025, 16:49
von j.werner
Hi,

which architecture (32bit/64bit/arm64) the winget binary has?

Maybe calling the section with a modifier e.g. /64bit could help.

For Example
Dosbatch... WINST /64bit

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

Verfasst: 18 Nov 2025, 13:56
von bourhis
Hi,

I tried this option without any more success...

Regards