[wpkg-users] Remove Windows Apps

Stefan Pendl stefan.pendl.71 at gmail.com
Wed Mar 28 23:56:58 CEST 2018


Am 28.03.2018 um 19:48 schrieb Ronnie Carlos Tavares Nunes:
> Hi,
> 
> I'm trying do run a package that disable some apps from Windows 10. So 
> I'm using this:
> 
>     <install cmd='powershell -noninteractive Get-AppxPackage -allusers 
> *windowsalarms* | Remove-AppxPackage' />
> 
> When I run it manually, in the command line with administrative 
> privileges its ok. On Wpkg, it executes with no errors but the Apps are 
> not uninstalled.
> 
> Any ideas?

I think you also need to use the -ExecutionPolicy command line switch 
and especially the -Command switch to overcome some limitations that 
PowerShell is exposing.
In addition I would try to run it inside of a command prompt by using:
cmd="%ComSpec% /c powershell ...".


-- 
*Stefan P.*

Top-posting:
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?


More information about the wpkg-users mailing list