Using PowerShell to remove Windows 10 preinstalled store app and store

The default installation of Windows 10 contains some software which, most people simply remove. This shell script automates that process and removes the Microsoft Store as well.

This script below will prompt the user to see if they want to remove each item. Then attempt removal if the user enters “Y’.

In order to download this file right-click and select “Save Link As”, it should have the extension of .ps1.


 write-host "This script will attempt to remove Windows Store Apps."
 $ar = @(
foreach($app in $ar){
$input = read-host "Do you wish to remove "$app"? Y/N"
if($input -eq "Y"){
    get-appxpackage $app -ErrorAction ignore | Remove-AppxPackage
$input = $null