5 Replies Latest reply on Jul 5, 2017 8:32 AM by jParnell

    Remove Windows 10 Built in apps

    1977-ITGuy Apprentice

      Has anyone been able to figure out a way to remove the built in apps during provisioning?  I have tried executing a Powershell action (run as Local System) and even though LANDesk says it was a SUCCESS, nothing happened   Here is the PS I snatched from the web. I can run this file as an administrator on the box and it successfully removes the apps but why not during Provisioning?

       

      $AppsList = "Microsoft.BingFinance","Microsoft.BingNews","Microsoft.BingWeather","Microsoft.XboxApp","Microsoft.SkypeApp","Microsoft.MicrosoftSolitaireCollection","Microsoft.BingSports","Microsoft.ZuneMusic","Microsoft.ZuneVideo","Microsoft.MicrosoftOfficeHub","Microsoft.WindowsMaps","Microsoft.Getstarted","Microsoft.3DBuilder"

       

       

      ForEach ($App in $AppsList)

      {

          $PackageFullName = (Get-AppxPackage $App).PackageFullName

          $ProPackageFullName = (Get-AppxProvisionedPackage -online | where {$_.Displayname -eq $App}).PackageName

              write-host $PackageFullName

              Write-Host $ProPackageFullName

          if ($PackageFullName)

          {

              Write-Host "Removing Package: $App"

              remove-AppxPackage -package $PackageFullName

          }

          else

          {

              Write-Host "Unable to find package: $App"

          }

              if ($ProPackageFullName)

          {

              Write-Host "Removing Provisioned Package: $ProPackageFullName"

              Remove-AppxProvisionedPackage -online -packagename $ProPackageFullName

          }

          else

          {

              Write-Host "Unable to find provisioned package: $App"

          }

       

       

      }