Remove some Provisioned Apps

I have set up an image for the student network at the school I work at. I need to upgrade the image from 32bit to 64bit. Sounds simple; but..... I have created an image on 64bit but I need to restrict some of the provision apps. I used a command line on the 32 bit version that removed the apps I want restricted and kept the other provision apps. The problem I get is when I come to remove the provision apps on 64bit. I run the same command line in PowerShell, but it removes all the provision apps instead of just the ones I requested. Is there a way around this? An example of the command line is here.

DISM.exe /online /Remove-ProvisionedAppxPackage /PackageName:Microsoft.Camera_6.2.8514.0_x64__8wekyb3d8bbwe

July 19th, 2013 10:01am

Look at this nice Powershell script:

$AppsList = "Microsoft.Bing" , "Microsoft.BingFinance" , "Microsoft.BingMaps" , "Microsoft.BingNews"`
            , "Microsoft.BingSports" , "Microsoft.BingTravel" , "Microsoft.BingWeather" , "Microsoft.Camera"`
            , "microsoft.microsoftskydrive" , "Microsoft.Reader" , "microsoft.windowscommunicationsapps"`
            , "microsoft.windowsphotos" , "Microsoft.XboxLIVEGames" , "Microsoft.ZuneMusic"`
            , "Microsoft.ZuneVideo" , "Microsoft.Media.PlayReadyClient"

ForEach ($App in $AppsList)
{
    $PackageFullName = (Get-AppxPackage $App).PackageFullName
    if ((Get-AppxPackage $App).PackageFullName)
    {
        Write-Host "Removing Package: $App"
        remove-AppxProvisionedPackage -online -packagename $PackageFullName
        remove-AppxPackage -package $PackageFullName
    }
    else
    {
        Write-Host "Unable to find package: $App"
    }
}


Removing Built-in Applications from Windows 8

http://blogs.technet.com/b/deploymentguys/archive/2013/06/07/update-removing-built-in-applications-from-windows-8.aspx

Free Windows Admin Tool Kit Click here and download it now
July 19th, 2013 3:13pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics