Scripting Question

Uninstall Appx package for user account

05/10/2017 925 views

I have create package with appx application by powershell script. 
The installation by command line <Add-AppxProvisionedPackage -online -PackagePath $Path -LicensePath $licencePath -DependencyPackagePath $PrereqPath -LogPath $PathLOG\$logname"> it's ok.
The uninstall it's ok for new user whith the command <Get-AppxProvisionedPackage -online | Where-Object {$Vartest -like '$AppxName'} | Remove-AppxProvisionedPackage -online -LogPath $PathLOG\$logname" >

My commande is execute by system account for user session.
My problème is:  For uninstall the appx for user with the system account. 

Have you a solution for me ? 

ps: Sorry for my English !!! :-)
0 Comments   [ + ] Show comments


Be the first to answer this question

This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ