Windows 11 Tweaks, Fixes and Modifications [Overview]

Discussion in 'Windows 11' started by Enthousiast, Jul 1, 2021.

  1. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,351
    2,308
    60
    #1381 drew84, May 12, 2023
    Last edited: May 12, 2023

    @abbodi1406
    's solution
    Clean way prevent Inbox Apps from being deployed (registered)

    ... from 2+ years ago, may still be relevent

    ... more here: https://forums.mydigitallife.net/th...n-windows-10-version-1809.78576/#post-1634179
     
  2. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,351
    2,308
    60
    #1383 drew84, May 12, 2023
    Last edited: May 12, 2023
    @(\_/)^(\_/)
    Re: Above... can't find your original post, but have found copies among my notes
    Happy to present them here (if it may help others), but only if you are OK with that.

    Code:
    @echo off
       echo ======================================================
       echo ---------- Disable Windows Features ------------------
       echo ======================================================
       Powershell -Command "Get-WindowsOptionalFeature -Online | Where-Object {$_.State -eq 'Enabled' } | Out-GridView -PassThru -Title 'Select Windows Optional Features to Disable' | Disable-WindowsOptionalFeature -Online -NoRestart -Verbose"
       echo ======================================================
       echo ---------- Remove Windows Capabilities ---------------
       echo ======================================================
       Powershell -Command "Get-WindowsCapability -Online | Where-Object {$_.State -eq 'Installed' } | Out-GridView -PassThru -Title 'Select Windows Capabilities to Remove' | Remove-WindowsCapability -Online -Verbose"
       echo ======================================================
       echo ---------- Remove Provisioned (UWP) Apps -------------
       echo ======================================================
       PowerShell -Command "Get-AppXProvisionedPackage -Online | Out-GridView -PassThru -Title 'Remove Windows Apps' | Remove-AppXProvisionedPackage -Online -ErrorAction SilentlyContinue -Verbose"
       echo ======================================================
       echo ---------- Remove SystemApps -----------------
       echo ======================================================
       Powershell -Command "Get-AppxPackage -AllUsers | Out-GridView -PassThru -Title 'Remove System Apps' | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue -Verbose"
       echo ======================================================
       pause
    

    Code:
    @echo off & title SystemApps Removal Tweaker & color 17
    rem *** User Need Both SetACL & SQLite3 Executables next to Script *** <<<<-----NOTE!!!
        cd %~dp0
        echo ------ SystemApps Removal Tweak
        PowerShell -Command "Get-AppXProvisionedPackage -Online | Out-GridView -PassThru -Title 'Remove Metro Apps' | Remove-AppXProvisionedPackage -Online -AllUsers -ErrorAction SilentlyContinue -Verbose"
        SetACL -ot "reg" -on "HKLM\SYSTEM\CurrentControlSet\Services\StateRepository" -actn setowner -ownr "n:Administrators"
        SetACL -ot "reg" -on "HKLM\SYSTEM\CurrentControlSet\Services\StateRepository" -actn ace -ace "n:Administrators;p:full"
        Powershell -Command "Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\StateRepository' 'Start' 4 -Verbose"
        Powershell -Command "Stop-Service -Name StateRepository -Force -Verbose"
        Powershell -Command "Get-Service -Name StateRepository -Verbose"
        SetACL -ot "file" -on "%ProgramFiles%\WindowsApps" -actn setowner -ownr "n:Administrators"
        SetACL -ot "file" -on "%ProgramFiles%\WindowsApps" -actn ace -ace "n:Administrators;p:full"
        SetACL -ot "file" -on "%ProgramData%\Microsoft\Windows\AppRepository" -actn setowner -ownr "n:Administrators"
        SetACL -ot "file" -on "%ProgramData%\Microsoft\Windows\AppRepository" -actn ace -ace "n:Administrators;p:full"
        SetACL -ot "file" -on "%ProgramData%\Microsoft\Windows\AppRepository\StateRepository-Machine.srd" -actn setowner -ownr "n:Administrators"
        SetACL -ot "file" -on "%ProgramData%\Microsoft\Windows\AppRepository\StateRepository-Machine.srd" -actn ace -ace "n:Administrators;p:full"
        IF EXIST "%ProgramData%\Microsoft\Windows\AppRepository\PackageRepository.edb" del /f /s /q /a "%ProgramData%\Microsoft\Windows\AppRepository\PackageRepository.edb"
        Powershell -Command "Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\StateRepository' 'Start' 2 -Verbose"
        Powershell -Command "Start-Service -Name StateRepository -Verbose"
        Powershell -Command "Get-Service -Name StateRepository -Verbose"
        TASKLIST /svc /fi "services eq StateRepository"
        TASKKILL /F /FI "services eq StateRepository" /T
        SQLite3 "%ProgramData%\Microsoft\Windows\AppRepository\StateRepository-Machine.srd" "DROP TRIGGER TRG_AFTER_UPDATE_Package_SRJournal;"
        SQLite3 "%ProgramData%\Microsoft\Windows\AppRepository\StateRepository-Machine.srd" "UPDATE Package SET IsInBox=0 WHERE IsInBox=1;"
        Powershell -Command "Write-Output ':***********************************************************************:' '' '                               { Urgent SystemApps Removal }' '' ' Pl Do Not Select [ShellExperienceHost] [ImmersiveControlPanel] [VClibs] ' '' '      Pl Dont Worry as it will Show you Critical Error For Start Menu ' '' '                            Drop it Downside Towards Taskbar ' '' '               OpenShell Is the Correct Solution for Start Menu' '' '                       Waiting Time is 10 Min Until You Press OK' | MSG "%username%" /TIME:600 /W"
        Powershell -Command "Get-AppxPackage -AllUsers | Out-GridView -PassThru -Title 'Remove System Apps' | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue -Verbose"
    
     
  3. yea am ok with that sir :) thank you once again.
     
  4. eemuler

    eemuler MDL Senior Member

    Jul 31, 2015
    471
    178
    10
    It seems that removing system apps from a live system is a bit of a pain. The best way seems to be to prevent them from getting installed in the first place, either at the image creation stage or during installation.
    My way of moving downloaded stuff into a non-system folder seems to be working for me. I have pinned two destination folders to quick access and simply drag and drop the downloaded files there before opening them.
    I'll try the other method the next time I reinstall Windows.
     
  5. Dark Dinosaur

    Dark Dinosaur X Æ A-12

    Feb 2, 2011
    3,734
    5,181
    120
    Aveyo have script to remove system apps
    With out the need of using 3rd tools ..
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,351
    2,308
    60
    ... located in the second link provided in Post #1381 (6 above this one)
     
  7. Duckz

    Duckz MDL Junior Member

    Jan 6, 2010
    71
    12
    0
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. leaks98

    leaks98 MDL Junior Member

    May 7, 2015
    65
    27
    0
    Can you increase the number of paused days for downloading windows updates in windows 11 22h2 ?
    using FlightSettingMaxPauseDays doesn't work anymore
     
  9. boe323

    boe323 MDL Expert

    Jul 19, 2011
    1,598
    469
    60
    it should still work, but once you resume it will need setting again, if the flag isn't working try deleting said flag
    Set the flag...don't check for updates , just pause
    upload_2023-5-18_16-52-36.png

    still working
     
  10. cbsvitzer

    cbsvitzer MDL Member

    Feb 4, 2010
    199
    133
    10
  11. cbsvitzer

    cbsvitzer MDL Member

    Feb 4, 2010
    199
    133
    10
    @eemuler
    I just tried the links, and they work now ;)
     
  12. eemuler

    eemuler MDL Senior Member

    Jul 31, 2015
    471
    178
    10
    The link to download the app works. The app, however, is unable to connect to the internet to check for updates and to get the list of recommended apps etc.
     
  13. Stimpy88

    Stimpy88 MDL Senior Member

    Mar 24, 2011
    353
    188
    10
    #1399 Stimpy88, May 27, 2023
    Last edited: May 27, 2023
    FYI - Just tried your Anti-Defender 5, and see that SmartScreen is still running after a restart and is causing huge delays when opening any apps. I also noticed an update in Windows update for Defender. There is also a notification to turn on the Windows Security Service in the Notification Centre.

    Yes, tamper protection was disabled, I just run the .cmd with admin privileges on a fresh install of Win11 build 23466.1001

    I will have to reinstall Windows, as even with SmartScreen removed, the system takes forever to open apps and to install anything.
     
  14. TairikuOkami

    TairikuOkami MDL Expert

    Mar 15, 2014
    1,172
    1,055
    60
    When you disable certain Windows services, it causes such a drag. For example Security Accounts Manager, System Guard Runtime Monitor Broker, Windows Push Notifications User Service. I have removed smartscreen and no issues here.