Hi Im trying to remove Windows 10 Mail app with Powershell in PDQ Deploy.
I have the following script that works 100% if I run it locally in a win 10 client.
Get-AppxPackage -allusers *windowscommunicationsapps* | Remove-AppxPackage
Here is the command line from the package
%systemroot%\System32\WindowsPowerShell\V1.0\PowerShell.exe -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Bypass
But if I create a package to run the script in PDQ and push to a machine that has the mail app it does run and says successful but the app is still on the machine.
Tried running as local system and deploy user and no difference.
Am I doing something wrong ?
Please sign in to leave a comment.