Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A lot of errors with "remove-default-apps.ps1" on W10 Pro V1709 build 16299.251 #157

Open
di57inct opened this issue Mar 20, 2018 · 2 comments

Comments

@di57inct
Copy link

PS C:\Users\D7\Desktop\Debloat-Windows-10-master\scripts> .\optimize-windows-update.ps1
Disable automatic download and installation of Windows updates


    Hive: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\WindowsUpdate


Name                           Property
----                           --------
AU
Disable seeding of updates to other computers via Group Policies


    Hive: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows


Name                           Property
----                           --------
DeliveryOptimization


PS C:\Users\D7\Desktop\Debloat-Windows-10-master\scripts> .\remove-default-apps.ps1
Elevating privileges for this process
Uninstalling default apps
Trying to remove Microsoft.3DBuilder
Trying to remove Microsoft.Appconnector
Trying to remove Microsoft.BingFinance
Trying to remove Microsoft.BingNews
Trying to remove Microsoft.BingSports
Trying to remove Microsoft.BingWeather
Remove-AppxPackage : The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
At C:\Users\D7\Desktop\Debloat-Windows-10-master\scripts\remove-default-apps.ps1:108 char:44
+ ...   Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage -AllUsers
+                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Remove-AppxPackage], FileNotFoundException
    + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.Windows.Appx.PackageManager.Commands.RemoveApp
   xPackageCommand



Path          :
Online        : True
RestartNeeded : False

Trying to remove Microsoft.Getstarted
Remove-AppxPackage : The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
At C:\Users\D7\Desktop\Debloat-Windows-10-master\scripts\remove-default-apps.ps1:108 char:44
+ ...   Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage -AllUsers
+                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Remove-AppxPackage], FileNotFoundException
    + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.Windows.Appx.PackageManager.Commands.RemoveApp
   xPackageCommand

Path          :
Online        : True
RestartNeeded : False

Trying to remove Microsoft.MicrosoftOfficeHub
Remove-AppxPackage : The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
At C:\Users\D7\Desktop\Debloat-Windows-10-master\scripts\remove-default-apps.ps1:108 char:44
+ ...   Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage -AllUsers
+                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Remove-AppxPackage], FileNotFoundException
    + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.Windows.Appx.PackageManager.Commands.RemoveApp
   xPackageCommand

Path          :
Online        : True
RestartNeeded : False

Trying to remove Microsoft.MicrosoftSolitaireCollection
Remove-AppxPackage : The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
At C:\Users\D7\Desktop\Debloat-Windows-10-master\scripts\remove-default-apps.ps1:108 char:44
+ ...   Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage -AllUsers
+                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Remove-AppxPackage], FileNotFoundException
    + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.Windows.Appx.PackageManager.Commands.RemoveApp
   xPackageCommand

Path          :
Online        : True
RestartNeeded : False

Trying to remove Microsoft.Office.OneNote
Remove-AppxPackage : The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
At C:\Users\D7\Desktop\Debloat-Windows-10-master\scripts\remove-default-apps.ps1:108 char:44
+ ...   Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage -AllUsers
+                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Remove-AppxPackage], FileNotFoundException
    + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.Windows.Appx.PackageManager.Commands.RemoveApp
   xPackageCommand

Path          :
Online        : True
RestartNeeded : False

Trying to remove Microsoft.People
Remove-AppxPackage : The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
At C:\Users\D7\Desktop\Debloat-Windows-10-master\scripts\remove-default-apps.ps1:108 char:44
+ ...   Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage -AllUsers
+                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Remove-AppxPackage], FileNotFoundException
    + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.Windows.Appx.PackageManager.Commands.RemoveApp
   xPackageCommand

Path          :
Online        : True
RestartNeeded : False

Trying to remove Microsoft.SkypeApp
Remove-AppxPackage : The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
At C:\Users\D7\Desktop\Debloat-Windows-10-master\scripts\remove-default-apps.ps1:108 char:44
+ ...   Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage -AllUsers
+                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Remove-AppxPackage], FileNotFoundException
    + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.Windows.Appx.PackageManager.Commands.RemoveApp
   xPackageCommand

Path          :
Online        : True
RestartNeeded : False

Trying to remove Microsoft.WindowsAlarms
Remove-AppxPackage : The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
At C:\Users\D7\Desktop\Debloat-Windows-10-master\scripts\remove-default-apps.ps1:108 char:44
+ ...   Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage -AllUsers
+                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Remove-AppxPackage], FileNotFoundException
    + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.Windows.Appx.PackageManager.Commands.RemoveApp
   xPackageCommand

Path          :
Online        : True
RestartNeeded : False

Trying to remove Microsoft.WindowsCamera
Remove-AppxPackage : The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
At C:\Users\D7\Desktop\Debloat-Windows-10-master\scripts\remove-default-apps.ps1:108 char:44
+ ...   Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage -AllUsers
+                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Remove-AppxPackage], FileNotFoundException
    + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.Windows.Appx.PackageManager.Commands.RemoveApp
   xPackageCommand

Path          :
Online        : True
RestartNeeded : False

Trying to remove Microsoft.WindowsMaps
Remove-AppxPackage : The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
At C:\Users\D7\Desktop\Debloat-Windows-10-master\scripts\remove-default-apps.ps1:108 char:44
+ ...   Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage -AllUsers
+                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Remove-AppxPackage], FileNotFoundException
    + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.Windows.Appx.PackageManager.Commands.RemoveApp
   xPackageCommand

Path          :
Online        : True
RestartNeeded : False

Trying to remove Microsoft.WindowsPhone
Trying to remove Microsoft.WindowsSoundRecorder
Remove-AppxPackage : The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
At C:\Users\D7\Desktop\Debloat-Windows-10-master\scripts\remove-default-apps.ps1:108 char:44
+ ...   Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage -AllUsers
+                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Remove-AppxPackage], FileNotFoundException
    + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.Windows.Appx.PackageManager.Commands.RemoveApp
   xPackageCommand

Path          :
Online        : True
RestartNeeded : False

Trying to remove Microsoft.XboxApp
Remove-AppxPackage : The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
At C:\Users\D7\Desktop\Debloat-Windows-10-master\scripts\remove-default-apps.ps1:108 char:44
+ ...   Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage -AllUsers
+                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Remove-AppxPackage], FileNotFoundException
    + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.Windows.Appx.PackageManager.Commands.RemoveApp
   xPackageCommand

Path          :
Online        : True
RestartNeeded : False

Trying to remove Microsoft.ZuneMusic
Remove-AppxPackage : The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
At C:\Users\D7\Desktop\Debloat-Windows-10-master\scripts\remove-default-apps.ps1:108 char:44
+ ...   Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage -AllUsers
+                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Remove-AppxPackage], FileNotFoundException
    + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.Windows.Appx.PackageManager.Commands.RemoveApp
   xPackageCommand

Path          :
Online        : True
RestartNeeded : False

Trying to remove Microsoft.ZuneVideo
Remove-AppxPackage : The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
At C:\Users\D7\Desktop\Debloat-Windows-10-master\scripts\remove-default-apps.ps1:108 char:44
+ ...   Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage -AllUsers
+                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Remove-AppxPackage], FileNotFoundException
    + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.Windows.Appx.PackageManager.Commands.RemoveApp
   xPackageCommand

Path          :
Online        : True
RestartNeeded : False

Trying to remove microsoft.windowscommunicationsapps
Remove-AppxPackage : The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
At C:\Users\D7\Desktop\Debloat-Windows-10-master\scripts\remove-default-apps.ps1:108 char:44
+ ...   Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage -AllUsers
+                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Remove-AppxPackage], FileNotFoundException
    + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.Windows.Appx.PackageManager.Commands.RemoveApp
   xPackageCommand

Path          :
Online        : True
RestartNeeded : False

Trying to remove Microsoft.MinecraftUWP
Trying to remove Microsoft.MicrosoftPowerBIForWindows
Trying to remove Microsoft.NetworkSpeedTest
Trying to remove Microsoft.CommsPhone
Trying to remove Microsoft.ConnectivityStore
Trying to remove Microsoft.Messaging
Remove-AppxPackage : The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
At C:\Users\D7\Desktop\Debloat-Windows-10-master\scripts\remove-default-apps.ps1:108 char:44
+ ...   Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage -AllUsers
+                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Remove-AppxPackage], FileNotFoundException
    + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.Windows.Appx.PackageManager.Commands.RemoveApp
   xPackageCommand

Path          :
Online        : True
RestartNeeded : False

Trying to remove Microsoft.Office.Sway
Trying to remove Microsoft.OneConnect
Remove-AppxPackage : The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
At C:\Users\D7\Desktop\Debloat-Windows-10-master\scripts\remove-default-apps.ps1:108 char:44
+ ...   Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage -AllUsers
+                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Remove-AppxPackage], FileNotFoundException
    + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.Windows.Appx.PackageManager.Commands.RemoveApp
   xPackageCommand

Path          :
Online        : True
RestartNeeded : False

Trying to remove Microsoft.WindowsFeedbackHub
Remove-AppxPackage : The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
At C:\Users\D7\Desktop\Debloat-Windows-10-master\scripts\remove-default-apps.ps1:108 char:44
+ ...   Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage -AllUsers
+                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Remove-AppxPackage], FileNotFoundException
    + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.Windows.Appx.PackageManager.Commands.RemoveApp
   xPackageCommand

Path          :
Online        : True
RestartNeeded : False

Trying to remove Microsoft.BingFoodAndDrink
Trying to remove Microsoft.BingTravel
Trying to remove Microsoft.BingHealthAndFitness
Trying to remove Microsoft.WindowsReadingList
Trying to remove 9E2F88E3.Twitter
Trying to remove PandoraMediaInc.29680B314EFC2
Trying to remove Flipboard.Flipboard
Trying to remove ShazamEntertainmentLtd.Shazam
Trying to remove king.com.CandyCrushSaga
Trying to remove king.com.CandyCrushSodaSaga
Trying to remove king.com.*
Trying to remove ClearChannelRadioDigital.iHeartRadio
Trying to remove 4DF9E0F8.Netflix
Trying to remove 6Wunderkinder.Wunderlist
Trying to remove Drawboard.DrawboardPDF
Trying to remove 2FE3CB00.PicsArt-PhotoStudio
Trying to remove D52A8D61.FarmVille2CountryEscape
Trying to remove TuneIn.TuneInRadio
Trying to remove GAMELOFTSA.Asphalt8Airborne
Trying to remove TheNewYorkTimes.NYTCrossword
Trying to remove DB6EA5DB.CyberLinkMediaSuiteEssentials
Trying to remove Facebook.Facebook
Trying to remove flaregamesGmbH.RoyalRevolt2
Trying to remove Playtika.CaesarsSlotsFreeCasino
Trying to remove A278AB0D.MarchofEmpires
Trying to remove KeeperSecurityInc.Keeper
Trying to remove ThumbmunkeysLtd.PhototasticCollage
Trying to remove XINGAG.XING
Trying to remove 89006A2E.AutodeskSketchBook
Trying to remove D5EA27B7.Duolingo-LearnLanguagesforFree
Trying to remove 46928bounde.EclipseManager
Trying to remove ActiproSoftwareLLC.562882FEEB491
Trying to remove DolbyLaboratories.DolbyAccess
Trying to remove SpotifyAB.SpotifyMusic
Trying to remove A278AB0D.DisneyMagicKingdoms
Trying to remove WinZipComputing.WinZipUniversal

Property      : {}
PSPath        : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Cloud
                Content
PSParentPath  : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows
PSChildName   : Cloud Content
PSDrive       : HKLM
PSProvider    : Microsoft.PowerShell.Core\Registry
PSIsContainer : True
SubKeyCount   : 0
View          : Default
Handle        : Microsoft.Win32.SafeHandles.SafeRegistryHandle
ValueCount    : 0
Name          : HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Cloud Content
@MrUzagi
Copy link

MrUzagi commented Mar 26, 2018

I got the same thing, but noticed that things went away after the second run.

So I moved the line with remove-appxpackage after the lines with remove-appxprovisionedpackage and it seems to have done the trick. Apps are removed without an error now. At least for me.

(edit: I should mention I ran all my tests on a virtual machine, running Windows 10 1709, that I reset between tests.)

@di57inct
Copy link
Author

Same here. Second run works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants