Optimize-Offline Guide - Windows Debloating Tool, Windows 1803, 1903, 19H2, 1909, 20H1 and LTSC 2019

Discussion in 'Windows 10' started by KedarWolf, Jul 30, 2019.

  1. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    874
    30
    #261 KedarWolf, Feb 6, 2020
    Last edited: Feb 6, 2020
    (OP)
    Thanks!!! I spent a full day Googling, trying to figure out what the issue was with my Microsoft Store game. And reinstalling Windows with various Optimize Offline configurations.

    Also, does the below lines in the code add those tweaks if any Xbox package is removed or only if the Microsoft.XboxGameCallableUI is removed. I deleted the code as I feared some of the tweaks might interfere with the store as well but never tested it with the code still in the script as I finally got my game to download. I never removed Microsoft.XboxGameCallableUI with Optimise Offline but I removed other Xbox packages.

    If you prefer, I can do a ticket on Github. :)

    Code:
    If ($RemovedAppxPackages.Keys -like "*Xbox*" -or $RemovedSystemApps.'Microsoft.XboxGameCallableUI')
                    {
                        RegKey -Path "HKLM:\WIM_HKLM_SOFTWARE\Policies\Microsoft\Windows\GameDVR" -Name "AllowGameDVR" -Value 0 -Type DWord
                        RegKey -Path "HKLM:\WIM_HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR" -Name "AppCaptureEnabled" -Value 0 -Type DWord
                        RegKey -Path "HKLM:\WIM_HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR" -Name "AudioCaptureEnabled" -Value 0 -Type DWord
                        RegKey -Path "HKLM:\WIM_HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR" -Name "CursorCaptureEnabled" -Value 0 -Type DWord
                        RegKey -Path "HKLM:\WIM_HKCU\SOFTWARE\Microsoft\GameBar" -Name "AutoGameModeEnabled" -Value 0 -Type DWord
                        RegKey -Path "HKLM:\WIM_HKCU\SOFTWARE\Microsoft\GameBar" -Name "AllowAutoGameMode" -Value 0 -Type DWord
                        RegKey -Path "HKLM:\WIM_HKCU\SOFTWARE\Microsoft\GameBar" -Name "UseNexusForGameBarEnabled" -Value 0 -Type DWord
                        RegKey -Path "HKLM:\WIM_HKCU\System\GameConfigStore" -Name "GameDVR_Enabled" -Value 0 -Type DWord
                        RegKey -Path "HKLM:\WIM_HKCU\System\GameConfigStore" -Name "GameDVR_FSEBehavior" -Value 2 -Type DWord
                        RegKey -Path "HKLM:\WIM_HKCU\System\GameConfigStore" -Name "GameDVR_FSEBehaviorMode" -Value 2 -Type DWord
                        @("xbgm", "XblAuthManager", "XblGameSave", "xboxgip", "XboxGipSvc", "XboxNetApiSvc") | ForEach-Object -Process { If (Test-Path -Path "HKLM:\WIM_HKLM_SYSTEM\ControlSet001\Services\$($PSItem)") { RegKey -Path "HKLM:\WIM_HKLM_SYSTEM\ControlSet001\Services\$($PSItem)" -Name "Start" -Value 4 -Type DWord } }
                        [Void]$Visibility.Append('gaming-gamebar;gaming-gamedvr;gaming-broadcasting;gaming-gamemode;gaming-xboxnetworking;quietmomentsgame;')
                        If ($InstallInfo.Build -lt '17763') { [Void]$Visibility.Append('gaming-trueplay;') }
                    }
    
     
  2. GodHand

    GodHand MDL Addicted

    Jul 15, 2016
    534
    926
    30
    Those subkeys and values are applied if either Xbox Provisioned App Packages are removed or the XboxGameCallableUI System Application.

    I personally do not play any games through the Microsoft Store but considering the Xbox feature has evolved over time into Microsoft's core gaming component, I'm assuming it would be affected, though I'm willing to bet if anything would affect gameplay from Store Apps, it would be the disabling of the Xbox services and not the regular disabling of GameDVR and GameBar.

    Either way I will add the ability to omit these registry entries from being added for those who wish to play games and the like through Microsoft Store.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    874
    30
    I'll test it of course when you do.
     
  4. fLOW.

    fLOW. MDL Senior Member

    Jul 28, 2009
    485
    583
    10
  5. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    365
    540
    10
    #269 spanishfly, Feb 8, 2020
    Last edited: Feb 8, 2020
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. i have already tested 4.0.0.5 & source iso as1909 - 18363.592 without doing so as mentioned by spanishfly & installed it on a vmware workstation but i havent found any BSOD (Blue Sceen of Death) even i tried to install it on a old machine [17-3770 with gigabyte h61m-s mobo 160gb old seagate hdd] & installation finished without any error or BSOD . i think spanishfly might have removed a needed system app or might have disabled a feature which is mandatory for windows 10 to install thatswhy it results into an BSOD at her end.
    it will be better if spanishfly could upload a final log of ver 4.0.0.5 so that developer will rectify it & will suggest her where she was wrong at any step of the build.
     
  7. spanishfly

    spanishfly MDL Senior Member

    Dec 5, 2018
    365
    540
    10
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. means in year 2021 developer will release GUI . good to know from spanishfly.
     
  9. fLOW.

    fLOW. MDL Senior Member

    Jul 28, 2009
    485
    583
    10
  10. no any new updates . i think developer is working on to build a full final GUI of the project.
     
  11. GodHand

    GodHand MDL Addicted

    Jul 15, 2016
    534
    926
    30
    I rarely, if ever, check this thread. As a matter of fact, this is the most I've even browsed this thread because I never officially released the project here for one specific reason: it's hard for me to respond to all requests here and Github in a timely fashion with other projects because of work, and because simply replying/debugging issues on GitHub and PowerShellGet can take a lot of time in itself, hence why I prefer ticket submissions on Github because help from others does not get potentially "lost" in the copious amount of replies forum releases can accumulate. I will try to offer the occasional help here, too, though, but cannot guarantee immediate responses.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. KedarWolf

    KedarWolf MDL Addicted

    Mar 17, 2016
    977
    874
    30
    I'll open tickets on GitHub, that's what I normally do so it's all good. :)
     
  13. GodHand

    GodHand MDL Addicted

    Jul 15, 2016
    534
    926
    30
    I will be changing line 567 to the following:

    Code:
    If ($RemovedAppxPackages.'Microsoft.XboxIdentityProvider' -and ($RemovedAppxPackages.Keys -like "*Xbox*").Count -gt 1 -or $RemovedSystemApps.'Microsoft.XboxGameCallableUI')
    This way the clean-up of Xbox leftovers will only occur if the XboxIdentityProvider Provisioned App Package has been deprovisioned and removed, the count of removed Xbox packages is greater than 1 and the XboxGameCallableUI System Application has also been removed.

    If any of these criteria are not met, it will skip the Xbox clean-up.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. GodHand

    GodHand MDL Addicted

    Jul 15, 2016
    534
    926
    30
    Usually it's updated every week to week-and-a-half. I'm not sure how quickly you expect updates but debugging in itself can take quite some time, considering I have to run it on multiple independent images of different editions, apply said images to virtual machines and then put them under various forms of runtime load while auditing logs with my server to ensure things are running as they should be.

    Moreover, I have never just updated due to one specific issue unless that issue is severe. I prefer to update with a handful of fixes that need addressed at once rather than having a new update every other day just for one single 'fix' that does not necessary result in any finalization improvements (i.e. resource function code optimizations).

    As far as the GUI version is concerned - it's been complete for a while; however, its WimgApi and Dism dynamic library (.dll files) C# wrappers have required recent updates which I addressed in another thread last week on here.

    *EDIT*

    Also, I am testing a newer version with 19041.1 (20H1)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...