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


  • 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





    foreach ($app in $apps) {

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

        Get-AppXProvisionedPackage -Online |

            where DisplayName -EQ $app |

            Remove-AppxProvisionedPackage -Online


    • Edited by Prakash PR Thursday, August 11, 2016 2:19 PM
    Thursday, August 11, 2016 2:13 PM


  • Hi,

    Thanks for your post.

    Using a User Logon Script policy will always run the script as the user. There's no getting around that. As an alternative, you could consider using a Computer Startup Script. These are executed as the Local System account, which will have privileges.

    Please go through the following article to get more information:

    Assign Computer Startup Scripts

    “Startup scripts are run under the Local System account, and they have the full rights that are associated with being able to run under the Local System account.”

    Best Regards,

    Alvin Wang

    Please remember to mark the replies as an answers if they help and unmark them if they provide no help.
    If you have feedback for TechNet Subscriber Support, contact

    Friday, August 12, 2016 5:11 AM