Quantcast
Channel: Group Policy forum
Viewing all articles
Browse latest Browse all 19997

How to remove default store apps from windows 10 pro systems using PS script via GPO

$
0
0

We would like to remove default store apps from windows 10 Pro systems, we have managed to get a power shell script which can be deployed via group policy, but problem is that when it runs from system account (as startup script) it does not work,

However it is running perfectly fine as login script only , if the user is having admin privileges,but in our case most of the user does not have admin privileges in their system.

If anyone has come across such situation help with some workaround here.

Here is some part of the script we are running

$apps = @(

    # default Windows 10 apps

    "Microsoft.3DBuilder"

    "Microsoft.Appconnector"

    "Microsoft.BingFinance"

)

foreach ($app in $apps) {

    Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage

    Get-AppXProvisionedPackage -Online |

        where DisplayName -EQ $app |

        Remove-AppxProvisionedPackage -Online

}



Viewing all articles
Browse latest Browse all 19997

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>