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

remove-default-apps.ps1 via GPO windows 10 1709 #304

Open
dewz19 opened this issue Sep 27, 2022 · 3 comments
Open

remove-default-apps.ps1 via GPO windows 10 1709 #304

dewz19 opened this issue Sep 27, 2022 · 3 comments

Comments

@dewz19
Copy link

dewz19 commented Sep 27, 2022

Good afternoon! There are problems with the remove-default-apps.ps1 crypt for windows 10 version 1709. The script is executed through the GPO Script. For version 21h1, everything works out, but unfortunately not for version 1709. If you run it manually as an administrator, it deletes it.

@W4RH4WK
Copy link
Owner

W4RH4WK commented Sep 28, 2022

1709 is pretty old at this point. It is therefore not supported by this project (anymore). As mentioned in the README, I recommend running the scripts only on fresh installations. It goes without saying that you should install the most recent (stable) version of Windows rather than installing a version that is multiple years old. The process of updating isn't the smoothest.

@dewz19
Copy link
Author

dewz19 commented Sep 29, 2022

I will be very grateful to you if you help solve the error


Начало записи сценария Windows PowerShell
Время начала: 20220929093015
Имя пользователя: MAIN\СИСТЕМА
Запуск от имени пользователя: MAIN\СИСТЕМА
Имя конфигурации:
Компьютер: DESKTOP-7PK24UJ (Microsoft Windows NT 10.0.16299.0)
Ведущее приложение: -ExecutionPolicy ByPass -File \main.cyclone\NETLOGON\Debloat-Windows-10-master\scripts\remove-default-apps.ps1
ИД процесса: 3900
PSVersion: 5.1.16299.15
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.16299.15
BuildVersion: 10.0.16299.15
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1


PS>CommandInvocation(remove-default-apps.ps1): "remove-default-apps.ps1"
Elevating privileges for this process
Uninstalling default apps
PS>TerminatingError(Get-AppxProvisionedPackage): "Сбой DismOpenSession. Код ошибки: 0x80040154"


Начало записи сценария Windows PowerShell
Время начала: 20220929093228
Имя пользователя: MAIN\СИСТЕМА
Запуск от имени пользователя: MAIN\СИСТЕМА
Имя конфигурации:
Компьютер: DESKTOP-7PK24UJ (Microsoft Windows NT 10.0.16299.0)
Ведущее приложение: -ExecutionPolicy ByPass -File \main.cyclone\NETLOGON\Debloat-Windows-10-master\scripts\remove-default-apps.ps1
ИД процесса: 3900
PSVersion: 5.1.16299.15
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.16299.15
BuildVersion: 10.0.16299.15
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1


PS>CommandInvocation(Out-String): "Out-String"

ParameterBinding(Out-String): имя="InputObject"; значение="Сбой DismOpenSession. Код ошибки: 0x80040154"
Get-AppxProvisionedPackage : Сбой DismOpenSession. Код ошибки: 0x80040154
\main.cyclone\NETLOGON\Debloat-Windows-10-master\scripts\remove-default-apps.ps1:131 знак:27

  • $appxprovisionedpackage = Get-AppxProvisionedPackage -Online
  •                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Get-AppxProvisionedPackage], COMException
    • FullyQualifiedErrorId : Microsoft.Dism.Commands.GetAppxProvisionedPackageCommand
      Get-AppxProvisionedPackage : Сбой DismOpenSession. Код ошибки: 0x80040154
      \main.cyclone\NETLOGON\Debloat-Windows-10-master\scripts\remove-default-apps.ps1:131 знак:27
  • $appxprovisionedpackage = Get-AppxProvisionedPackage -Online
  •                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Get-AppxProvisionedPackage], COMException
    • FullyQualifiedErrorId : Microsoft.Dism.Commands.GetAppxProvisionedPackageCommand
      Get-AppxProvisionedPackage : Сбой DismOpenSession. Код ошибки: 0x80040154
      \main.cyclone\NETLOGON\Debloat-Windows-10-master\scripts\remove-default-apps.p
      s1:131 знак:27
  • $appxprovisionedpackage = Get-AppxProvisionedPackage -Online
  •                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Get-AppxProvisionedPackage],
      COMException
    • FullyQualifiedErrorId : Microsoft.Dism.Commands.GetAppxProvisionedPackag
      eCommand

Trying to remove Microsoft.549981C3F5F10
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.BingTranslator
Trying to remove Microsoft.BingWeather
Trying to remove Microsoft.GamingServices
Trying to remove Microsoft.MicrosoftOfficeHub
Trying to remove Microsoft.MicrosoftPowerBIForWindows
Trying to remove Microsoft.MicrosoftSolitaireCollection
Trying to remove Microsoft.MinecraftUWP
Trying to remove Microsoft.NetworkSpeedTest
Trying to remove Microsoft.Office.OneNote
Trying to remove Microsoft.People
Trying to remove Microsoft.Print3D
Trying to remove Microsoft.SkypeApp
Trying to remove Microsoft.Wallet
Trying to remove Microsoft.WindowsAlarms
Trying to remove Microsoft.WindowsCamera
Trying to remove microsoft.windowscommunicationsapps
Trying to remove Microsoft.WindowsMaps
Trying to remove Microsoft.WindowsPhone
Trying to remove Microsoft.WindowsSoundRecorder
Trying to remove Microsoft.Xbox.TCUI
Trying to remove Microsoft.XboxApp
Trying to remove Microsoft.XboxGameOverlay
Trying to remove Microsoft.XboxSpeechToTextOverlay
Trying to remove Microsoft.YourPhone
Trying to remove Microsoft.ZuneMusic
Trying to remove Microsoft.ZuneVideo
Trying to remove Microsoft.CommsPhone
Trying to remove Microsoft.ConnectivityStore
Trying to remove Microsoft.GetHelp
Trying to remove Microsoft.Getstarted
Trying to remove Microsoft.Messaging
Trying to remove Microsoft.Office.Sway
Trying to remove Microsoft.OneConnect
Trying to remove Microsoft.WindowsFeedbackHub
Trying to remove Microsoft.Microsoft3DViewer
Trying to remove Microsoft.BingFoodAndDrink
Trying to remove Microsoft.BingHealthAndFitness
Trying to remove Microsoft.BingTravel
Trying to remove Microsoft.WindowsReadingList
Trying to remove Microsoft.MixedReality.Portal
Trying to remove Microsoft.ScreenSketch
Trying to remove Microsoft.XboxGamingOverlay
Trying to remove 2FE3CB00.PicsArt-PhotoStudio
Trying to remove 46928bounde.EclipseManager
Trying to remove 4DF9E0F8.Netflix
Trying to remove 613EBCEA.PolarrPhotoEditorAcademicEdition
Trying to remove 6Wunderkinder.Wunderlist
Trying to remove 7EE7776C.LinkedInforWindows
Trying to remove 89006A2E.AutodeskSketchBook
Trying to remove 9E2F88E3.Twitter
Trying to remove A278AB0D.DisneyMagicKingdoms
Trying to remove A278AB0D.MarchofEmpires
Trying to remove ActiproSoftwareLLC.562882FEEB491
Trying to remove CAF9E577.Plex
Trying to remove ClearChannelRadioDigital.iHeartRadio
Trying to remove D52A8D61.FarmVille2CountryEscape
Trying to remove D5EA27B7.Duolingo-LearnLanguagesforFree
Trying to remove DB6EA5DB.CyberLinkMediaSuiteEssentials
Trying to remove DolbyLaboratories.DolbyAccess
Trying to remove DolbyLaboratories.DolbyAccess
Trying to remove Drawboard.DrawboardPDF
Trying to remove Facebook.Facebook
Trying to remove Fitbit.FitbitCoach
Trying to remove Flipboard.Flipboard
Trying to remove GAMELOFTSA.Asphalt8Airborne
Trying to remove KeeperSecurityInc.Keeper
Trying to remove NORDCURRENT.COOKINGFEVER
Trying to remove PandoraMediaInc.29680B314EFC2
Trying to remove Playtika.CaesarsSlotsFreeCasino
Trying to remove ShazamEntertainmentLtd.Shazam
Trying to remove SlingTVLLC.SlingTV
Trying to remove SpotifyAB.SpotifyMusic
Trying to remove ThumbmunkeysLtd.PhototasticCollage
Trying to remove TuneIn.TuneInRadio
Trying to remove WinZipComputing.WinZipUniversal
Trying to remove XINGAG.XING
Trying to remove flaregamesGmbH.RoyalRevolt2
Trying to remove king.com.*
Trying to remove king.com.BubbleWitch3Saga
Trying to remove king.com.CandyCrushSaga
Trying to remove king.com.CandyCrushSodaSaga
Trying to remove Microsoft.Advertising.Xaml
PS>$global:?
True


Конец записи протокола Windows PowerShell
Время окончания: 20220929093228


@W4RH4WK
Copy link
Owner

W4RH4WK commented Sep 29, 2022

Honestly no idea what's causing this. Sorry.

I see that Get-AppxProvisionedPackage is failing with 0x80040154 which typically means some management class has not been registered. However, no class is registered by the scripts. All of the functionality, specifically Get-AppxProvisionedPackage, is expected to be there and working before the scripts are run.

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