how to uninstall new "Windows Backup" bloat app?


Yeah, probably! Maybe a waste of time! 🤷‍♂️

Wonder if he ran that command in a Powershell Admin?
Ask him again next month when he has to do it again 😆
We need a reddit link :cool:
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2 Build 22631.4249
    Computer type
    PC/Desktop
    Manufacturer/Model
    Sin-built
    CPU
    Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz (4th Gen?)
    Motherboard
    ASUS ROG Maximus VI Formula
    Memory
    32.0 GB of I forget and the box is in storage.
    Graphics Card(s)
    Gigabyte nVidia GeForce GTX 1660 Super OC 6GB
    Sound Card
    Onboard
    Monitor(s) Displays
    4 x LG 23MP75 - 2 x 24MK430H-B - 1 x Wacom Pro 22" Tablet
    Screen Resolution
    All over the place
    Hard Drives
    Too many to list.
    OS on Samsung 1TB 870 QVO SATA
    PSU
    Silverstone 1500
    Case
    NZXT Phantom 820 Full-Tower Case
    Cooling
    Noctua NH-D15 Elite Class Dual Tower CPU Cooler / 6 x EziDIY 120mm / 2 x Corsair 140mm somethings / 1 x 140mm Thermaltake something / 2 x 200mm Corsair.
    Keyboard
    Corsair K95 / Logitech diNovo Edge Wireless
    Mouse
    Logitech G402 / G502 / Mx Masters / MX Air Cordless
    Internet Speed
    100/40Mbps
    Browser
    All sorts
    Antivirus
    Kaspersky Premium
    Other Info
    I’m on a horse.
  • Operating System
    Windows 11 Pro 23H2 Build: 22631.4249
    Computer type
    Laptop
    Manufacturer/Model
    LENOVO Yoga 7i EVO OLED 14" Touchscreen i5 12 Core 16GB/512GB
    CPU
    Intel Core 12th Gen i5-1240P Processor (1.7 - 4.4GHz)
    Memory
    16GB LPDDR5 RAM
    Graphics card(s)
    Intel Iris Xe Graphics Processor
    Sound Card
    Optimized with Dolby Atmos®
    Screen Resolution
    QHD 2880 x 1800 OLED
    Hard Drives
    M.2 512GB
    Other Info
    …still on a horse.

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2 Build 22631.4249
    Computer type
    PC/Desktop
    Manufacturer/Model
    Sin-built
    CPU
    Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz (4th Gen?)
    Motherboard
    ASUS ROG Maximus VI Formula
    Memory
    32.0 GB of I forget and the box is in storage.
    Graphics Card(s)
    Gigabyte nVidia GeForce GTX 1660 Super OC 6GB
    Sound Card
    Onboard
    Monitor(s) Displays
    4 x LG 23MP75 - 2 x 24MK430H-B - 1 x Wacom Pro 22" Tablet
    Screen Resolution
    All over the place
    Hard Drives
    Too many to list.
    OS on Samsung 1TB 870 QVO SATA
    PSU
    Silverstone 1500
    Case
    NZXT Phantom 820 Full-Tower Case
    Cooling
    Noctua NH-D15 Elite Class Dual Tower CPU Cooler / 6 x EziDIY 120mm / 2 x Corsair 140mm somethings / 1 x 140mm Thermaltake something / 2 x 200mm Corsair.
    Keyboard
    Corsair K95 / Logitech diNovo Edge Wireless
    Mouse
    Logitech G402 / G502 / Mx Masters / MX Air Cordless
    Internet Speed
    100/40Mbps
    Browser
    All sorts
    Antivirus
    Kaspersky Premium
    Other Info
    I’m on a horse.
  • Operating System
    Windows 11 Pro 23H2 Build: 22631.4249
    Computer type
    Laptop
    Manufacturer/Model
    LENOVO Yoga 7i EVO OLED 14" Touchscreen i5 12 Core 16GB/512GB
    CPU
    Intel Core 12th Gen i5-1240P Processor (1.7 - 4.4GHz)
    Memory
    16GB LPDDR5 RAM
    Graphics card(s)
    Intel Iris Xe Graphics Processor
    Sound Card
    Optimized with Dolby Atmos®
    Screen Resolution
    QHD 2880 x 1800 OLED
    Hard Drives
    M.2 512GB
    Other Info
    …still on a horse.
I can’t stand reddit. But from what I can gather, some are trying to restore that package lol
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2 Build 22631.4249
    Computer type
    PC/Desktop
    Manufacturer/Model
    Sin-built
    CPU
    Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz (4th Gen?)
    Motherboard
    ASUS ROG Maximus VI Formula
    Memory
    32.0 GB of I forget and the box is in storage.
    Graphics Card(s)
    Gigabyte nVidia GeForce GTX 1660 Super OC 6GB
    Sound Card
    Onboard
    Monitor(s) Displays
    4 x LG 23MP75 - 2 x 24MK430H-B - 1 x Wacom Pro 22" Tablet
    Screen Resolution
    All over the place
    Hard Drives
    Too many to list.
    OS on Samsung 1TB 870 QVO SATA
    PSU
    Silverstone 1500
    Case
    NZXT Phantom 820 Full-Tower Case
    Cooling
    Noctua NH-D15 Elite Class Dual Tower CPU Cooler / 6 x EziDIY 120mm / 2 x Corsair 140mm somethings / 1 x 140mm Thermaltake something / 2 x 200mm Corsair.
    Keyboard
    Corsair K95 / Logitech diNovo Edge Wireless
    Mouse
    Logitech G402 / G502 / Mx Masters / MX Air Cordless
    Internet Speed
    100/40Mbps
    Browser
    All sorts
    Antivirus
    Kaspersky Premium
    Other Info
    I’m on a horse.
  • Operating System
    Windows 11 Pro 23H2 Build: 22631.4249
    Computer type
    Laptop
    Manufacturer/Model
    LENOVO Yoga 7i EVO OLED 14" Touchscreen i5 12 Core 16GB/512GB
    CPU
    Intel Core 12th Gen i5-1240P Processor (1.7 - 4.4GHz)
    Memory
    16GB LPDDR5 RAM
    Graphics card(s)
    Intel Iris Xe Graphics Processor
    Sound Card
    Optimized with Dolby Atmos®
    Screen Resolution
    QHD 2880 x 1800 OLED
    Hard Drives
    M.2 512GB
    Other Info
    …still on a horse.
I can’t stand reddit. But from what I can gather, some are trying to restore that package lol
Yeah, if you read all the comments, it buggers up a lot of stuff!
 

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    ASUS ROG Strix
  • Operating System
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    ASUS VivoBook
Yeah, if you read all the comments, it buggers up a lot of stuff!
Mission aborted.
Companies these days don’t screw around. These results are quite purposeful and basically makes it impossible to remove one thing without losing something of value. Clever tactics by design.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2 Build 22631.4249
    Computer type
    PC/Desktop
    Manufacturer/Model
    Sin-built
    CPU
    Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz (4th Gen?)
    Motherboard
    ASUS ROG Maximus VI Formula
    Memory
    32.0 GB of I forget and the box is in storage.
    Graphics Card(s)
    Gigabyte nVidia GeForce GTX 1660 Super OC 6GB
    Sound Card
    Onboard
    Monitor(s) Displays
    4 x LG 23MP75 - 2 x 24MK430H-B - 1 x Wacom Pro 22" Tablet
    Screen Resolution
    All over the place
    Hard Drives
    Too many to list.
    OS on Samsung 1TB 870 QVO SATA
    PSU
    Silverstone 1500
    Case
    NZXT Phantom 820 Full-Tower Case
    Cooling
    Noctua NH-D15 Elite Class Dual Tower CPU Cooler / 6 x EziDIY 120mm / 2 x Corsair 140mm somethings / 1 x 140mm Thermaltake something / 2 x 200mm Corsair.
    Keyboard
    Corsair K95 / Logitech diNovo Edge Wireless
    Mouse
    Logitech G402 / G502 / Mx Masters / MX Air Cordless
    Internet Speed
    100/40Mbps
    Browser
    All sorts
    Antivirus
    Kaspersky Premium
    Other Info
    I’m on a horse.
  • Operating System
    Windows 11 Pro 23H2 Build: 22631.4249
    Computer type
    Laptop
    Manufacturer/Model
    LENOVO Yoga 7i EVO OLED 14" Touchscreen i5 12 Core 16GB/512GB
    CPU
    Intel Core 12th Gen i5-1240P Processor (1.7 - 4.4GHz)
    Memory
    16GB LPDDR5 RAM
    Graphics card(s)
    Intel Iris Xe Graphics Processor
    Sound Card
    Optimized with Dolby Atmos®
    Screen Resolution
    QHD 2880 x 1800 OLED
    Hard Drives
    M.2 512GB
    Other Info
    …still on a horse.
Good call!

Exactly!
It reminds me of opting out of specific adds or suggestions with Windows. ‘OK you opted out, so we are going to throw random crap at you‘ There is no off.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2 Build 22631.4249
    Computer type
    PC/Desktop
    Manufacturer/Model
    Sin-built
    CPU
    Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz (4th Gen?)
    Motherboard
    ASUS ROG Maximus VI Formula
    Memory
    32.0 GB of I forget and the box is in storage.
    Graphics Card(s)
    Gigabyte nVidia GeForce GTX 1660 Super OC 6GB
    Sound Card
    Onboard
    Monitor(s) Displays
    4 x LG 23MP75 - 2 x 24MK430H-B - 1 x Wacom Pro 22" Tablet
    Screen Resolution
    All over the place
    Hard Drives
    Too many to list.
    OS on Samsung 1TB 870 QVO SATA
    PSU
    Silverstone 1500
    Case
    NZXT Phantom 820 Full-Tower Case
    Cooling
    Noctua NH-D15 Elite Class Dual Tower CPU Cooler / 6 x EziDIY 120mm / 2 x Corsair 140mm somethings / 1 x 140mm Thermaltake something / 2 x 200mm Corsair.
    Keyboard
    Corsair K95 / Logitech diNovo Edge Wireless
    Mouse
    Logitech G402 / G502 / Mx Masters / MX Air Cordless
    Internet Speed
    100/40Mbps
    Browser
    All sorts
    Antivirus
    Kaspersky Premium
    Other Info
    I’m on a horse.
  • Operating System
    Windows 11 Pro 23H2 Build: 22631.4249
    Computer type
    Laptop
    Manufacturer/Model
    LENOVO Yoga 7i EVO OLED 14" Touchscreen i5 12 Core 16GB/512GB
    CPU
    Intel Core 12th Gen i5-1240P Processor (1.7 - 4.4GHz)
    Memory
    16GB LPDDR5 RAM
    Graphics card(s)
    Intel Iris Xe Graphics Processor
    Sound Card
    Optimized with Dolby Atmos®
    Screen Resolution
    QHD 2880 x 1800 OLED
    Hard Drives
    M.2 512GB
    Other Info
    …still on a horse.
I have Windows backup on my Pro desktop but so far it has not removed the old Backup and Restore (Windows 7) in Control Panel.

1695599331350.png
 

My Computers

System One System Two

  • OS
    Win11 Pro RTM
    Computer type
    Laptop
    Manufacturer/Model
    Dell Vostro 3400
    CPU
    Intel Core i5 11th Gen. 2.40GHz
    Memory
    12GB
    Hard Drives
    256GB SSD NVMe M.2
  • Operating System
    Windows 11 Pro RTM x64
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Vostro 5890
    CPU
    Intel Core i5 10th Gen. 2.90GHz
    Memory
    16GB
    Graphics card(s)
    Onboard, no VGA, using a DisplayPort-to-VGA adapter
    Monitor(s) Displays
    24" Dell
    Hard Drives
    512GB SSD NVMe, 4TB Seagate HDD
    Browser
    Firefox, Edge
    Antivirus
    Windows Defender/Microsoft Security
I have Windows backup on my Pro desktop but so far it has not removed the old Backup and Restore (Windows 7) in Control Panel.
I have to be honest, as someone who has never had the problems with Backup & Restore that others have had, I am glad it’s still there.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2 Build 22631.4249
    Computer type
    PC/Desktop
    Manufacturer/Model
    Sin-built
    CPU
    Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz (4th Gen?)
    Motherboard
    ASUS ROG Maximus VI Formula
    Memory
    32.0 GB of I forget and the box is in storage.
    Graphics Card(s)
    Gigabyte nVidia GeForce GTX 1660 Super OC 6GB
    Sound Card
    Onboard
    Monitor(s) Displays
    4 x LG 23MP75 - 2 x 24MK430H-B - 1 x Wacom Pro 22" Tablet
    Screen Resolution
    All over the place
    Hard Drives
    Too many to list.
    OS on Samsung 1TB 870 QVO SATA
    PSU
    Silverstone 1500
    Case
    NZXT Phantom 820 Full-Tower Case
    Cooling
    Noctua NH-D15 Elite Class Dual Tower CPU Cooler / 6 x EziDIY 120mm / 2 x Corsair 140mm somethings / 1 x 140mm Thermaltake something / 2 x 200mm Corsair.
    Keyboard
    Corsair K95 / Logitech diNovo Edge Wireless
    Mouse
    Logitech G402 / G502 / Mx Masters / MX Air Cordless
    Internet Speed
    100/40Mbps
    Browser
    All sorts
    Antivirus
    Kaspersky Premium
    Other Info
    I’m on a horse.
  • Operating System
    Windows 11 Pro 23H2 Build: 22631.4249
    Computer type
    Laptop
    Manufacturer/Model
    LENOVO Yoga 7i EVO OLED 14" Touchscreen i5 12 Core 16GB/512GB
    CPU
    Intel Core 12th Gen i5-1240P Processor (1.7 - 4.4GHz)
    Memory
    16GB LPDDR5 RAM
    Graphics card(s)
    Intel Iris Xe Graphics Processor
    Sound Card
    Optimized with Dolby Atmos®
    Screen Resolution
    QHD 2880 x 1800 OLED
    Hard Drives
    M.2 512GB
    Other Info
    …still on a horse.
Windows Backup is just a giant, misleading ad for OneDrive subscriptions. It doesn't add any new features. So many people have mistakenly thought that it was something that could rival macOS's backup functionality - which no, it does not. We're still left backing up things using the Windows 7 tool, using external software, or doing it ourselves. You cannot properly uninstall it as it isn't its own app. It's part of the Microsoft-Windows-UserExperience-Desktop-Package (Windows Feature Experience Pack), which is also responsible for the emoji picker, win+shift+s snipping tool, and more.
 

My Computer

System One

  • OS
    Windows 11
So, after all is said and done and after reading 4 pages of posts on getting rid of the Windows Backup entry that haunts me in my Startup menu, no one knows how to delete it.

Am I understanding this correctly?

bob
 

My Computers

System One System Two

  • OS
    Windows 11 Professional (x64)
    Computer type
    Laptop
    Manufacturer/Model
    Dell Inc. G16
    CPU
    Intel Core i9
    Motherboard
    Dell Inc. 0FDMYT A00
    Memory
    16 GB
    Graphics Card(s)
    NVIDIA GeForce RTX
    Sound Card
    Realtek(R) Audio
    Monitor(s) Displays
    Generic PnP Monitor (15.3"vis)
    Screen Resolution
    2560 x 1600
    Hard Drives
    4TB SSD
    PSU
    Dell
    Case
    Laptop
    Cooling
    Air
    Keyboard
    Dell
    Mouse
    Logitech
    Internet Speed
    10 Mbps (Dismal, slow DSL over phone line)
    Browser
    Google Chrome
    Antivirus
    Webroot SecureAnywhere
  • Operating System
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell
So, after all is said and done and after reading 4 pages of posts on getting rid of the Windows Backup entry that haunts me in my Startup menu, no one knows how to delete it.

Am I understanding this correctly?

bob
Have a read here.
 

My Computers

System One System Two

  • OS
    Win 11 Home & Pro
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Vivobook
    CPU
    AMD Ryzen™ 7 7730U
    Motherboard
    M1605YA
    Memory
    15.0GB Dual-Channel DDR4 @ 1596MHz (22-22-22-52)
    Graphics Card(s)
    512MB ATI AMD Radeon Graphics (ASUStek Computer Inc)
    Monitor(s) Displays
    Generic PnP Monitor (1920x1200@60Hz) - P1 PLUS (1920x1080@59Hz)
    Screen Resolution
    1920 X 1200
    Hard Drives
    953GB Western Digital WD
    PSU
    45 Watts
    Mouse
    Lenovo Bluetooth.
    Internet Speed
    500 Mbps
    Browser
    Edge
    Antivirus
    Defender
  • Operating System
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    ACER NITRO
    CPU
    AMD Ryzen 7 5800H / 3.2 GHz
    Motherboard
    CZ Scala_CAS (FP6)
    Memory
    32 GB DDR4 SDRAM 3200 MHz
    Graphics card(s)
    NVIDIA GeForce RTX 3060 6 GB GDDR6 SDRAM
    Sound Card
    Realtek Audio. NVIDIA High Definition Audio
    Monitor(s) Displays
    15.6" LED backlight 1920 x 1080 (Full HD) 144 Hz
    Screen Resolution
    1920 x 1080 (Full HD)
    Hard Drives
    Samsung 970 Evo Plus 2TB NVMe M.2
    PSU
    180 Watt, 19.5 V
    Mouse
    Lenovo Bluetooth
    Internet Speed
    500 Mbps
    Browser
    Edge
    Antivirus
    Defender
So many people have mistakenly thought that it was something that could rival macOS's backup functionality - which no, it does not.
This has confounded me since the first time I bought a mac and played with Time Machine. Time Machine is not the worlds most feature-rich configurable backup tool on the planet, but it comes by default and it does the exact job that almost everybody wants it to do. It takes backups of files and your system. If you need to recover just a single file, or a folder from a specific time you can do that. If you get a new mac, you can restore your Time Machine backup to it completely.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Beelink SEI8
    CPU
    Intel Core i5-8279u
    Motherboard
    AZW SEI
    Memory
    32GB DDR4 2666Mhz
    Graphics Card(s)
    Intel Iris Plus 655
    Sound Card
    Intel SST
    Monitor(s) Displays
    Asus ProArt PA278QV
    Screen Resolution
    2560x1440
    Hard Drives
    512GB NVMe
    PSU
    NA
    Case
    NA
    Cooling
    NA
    Keyboard
    NA
    Mouse
    NA
    Internet Speed
    500/50
    Browser
    Edge
    Antivirus
    Defender
    Other Info
    Mini PC used for testing Windows 11.
  • Operating System
    Windows 10 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    Ryzen 9 5900x
    Motherboard
    Asus Rog Strix X570-E Gaming
    Memory
    64GB DDR4-3600
    Graphics card(s)
    EVGA GeForce 3080 FT3 Ultra
    Sound Card
    Onboard
    Monitor(s) Displays
    ASUS TUF Gaming VG27AQ. ASUS ProArt Display PA278QV 27” WQHD
    Screen Resolution
    2560x1440
    Hard Drives
    2TB WD SN850 PCI-E Gen 4 NVMe
    2TB Sandisk Ultra 2.5" SATA SSD
    PSU
    Seasonic Focus 850
    Case
    Fractal Meshify S2 in White
    Cooling
    Dark Rock Pro CPU cooler, 3 x 140mm case fans
    Mouse
    Logitech G9 Laser Mouse
    Keyboard
    Corsiar K65 RGB Lux
    Internet Speed
    500/50
    Browser
    Chrome
    Antivirus
    Defender.
This tool is more useful than one might think. If you want to a clean install but hate going through some of the initial steps e.g. setting background, moving taskbar to left, set up start menu with key uwp apps etc, this is very easy to do using new backup.

One of Windows 8's useful features was "refresh my pc" (not reset my PC). When you did refresh, it reinstalled OS but kept uwp apps, settings and user data. This feature was ditched in Windows 10 and you have to reinstall all non default uwp apps manually. Also W10 "reset" reinstalls default uwp apps you have uninstalled.

I always thought this was a retrograde step in W10.

I am glad to see that the new backup tool will effectively emulate the old W8 refresh mode.

In effect, I now have a customised clean install template with virtually no effort.
 

My Computer

System One

  • OS
    Windows 11 Pro + Win11 Canary VM.
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Zenbook 14
    CPU
    I9 13th gen i9-13900H 2.60 GHZ
    Motherboard
    Yep, Laptop has one.
    Memory
    16 GB soldered
    Graphics Card(s)
    Integrated Intel Iris XE
    Sound Card
    Realtek built in
    Monitor(s) Displays
    laptop OLED screen
    Screen Resolution
    2880x1800 touchscreen
    Hard Drives
    1 TB NVME SSD (only weakness is only one slot)
    PSU
    Internal + 65W thunderbolt USB4 charger
    Case
    Yep, got one
    Cooling
    Stella Artois (UK pint cans - 568 ml) - extra cost.
    Keyboard
    Built in UK keybd
    Mouse
    Bluetooth , wireless dongled, wired
    Internet Speed
    900 mbs (ethernet), wifi 6 typical 350-450 mb/s both up and down
    Browser
    Edge
    Antivirus
    Defender
    Other Info
    TPM 2.0, 2xUSB4 thunderbolt, 1xUsb3 (usb a), 1xUsb-c, hdmi out, 3.5 mm audio out/in combo, ASUS backlit trackpad (inc. switchable number pad)

    Macrium Reflect Home V8
    Office 365 Family (6 users each 1TB onedrive space)
    Hyper-V (a vm runs almost as fast as my older laptop)
Hello tech frens! This is my first post so go easy on me. I'm pretty sure I have found a few ways to get rid of this bloat app.

The first method is removing the app manually, which I assume is leaving behind reg entries but removes the icon from start and the program. If you go to the directory below and type WindowsBackup in the search box. Delete the 5 files and reboot and you should be good to go.
  • Batch:
    C:\Windows\SystemApps\MicrosoftWindows.Client.CBS_cw5n1h2txyewy
The second method is through Remove-WindowsPackage in powershell. The issue with this method is that you have to look up the version of the current local package found on your system. Because this app changes versions every month or so, you have to replace the version number in this code to your current version number after the 2 tildes ~~ in the code. 10.0.19041.4123 is the current version for WIN10 22H2 for the date of this post.
  • Powershell:
    dism /online /get-packages
  • Powershell:
    Remove-WindowsPackage -Online -PackageName “Microsoft-Windows-UserExperience-Desktop-Package~31bf3856ad364e35~amd64~~10.0.19041.4123”
The third method came from code I actually used to remove the SecHealthUI app dynamically. After investigating the code, I figured out that I just needed the name of the package to remove the program dynamically without having to look up the current version number in method two. When searching through dism the package name came up as "WindowsUserExperience" but that isn't the name of the local package that gets installed for some odd reason. The name of the package locally that gets installed is "ClientCbs". It has a few different little apps in it like snipping tool and I think two others. This is why I mentioned the manual method just incase the other apps in this package is something that you might use. But personally I use third party apps for snipping and the other two I just don't use. Once I found the name of the package, I just switched the code from the "SecHealthUI" to "ClientCbs" and ran it. Turns out. It removes the whole package dynamically regardless of version.
  • Powershell:
    $remove_appx = @("Client.CBS"); $provisioned = get-appxprovisionedpackage -online; $appxpackage = get-appxpackage -allusers; $eol = @()
    $store = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore'
    $users = @('S-1-5-18'); if (test-path $store) {$users += $((dir $store -ea 0 |where {$_ -like '*S-1-5-21*'}).PSChildName)}
    foreach ($choice in $remove_appx) { if ('' -eq $choice.Trim()) {continue}
      foreach ($appx in $($provisioned |where {$_.PackageName -like "*$choice*"})) {
        $next = !1; foreach ($no in $skip) {if ($appx.PackageName -like "*$no*") {$next = !0}} ; if ($next) {continue}
        $PackageName = $appx.PackageName; $PackageFamilyName = ($appxpackage |where {$_.Name -eq $appx.DisplayName}).PackageFamilyName
        ni "$store\Deprovisioned\$PackageFamilyName" -force >''; $PackageFamilyName
        foreach ($sid in $users) {ni "$store\EndOfLife\$sid\$PackageName" -force >''} ; $eol += $PackageName
        dism /online /set-nonremovableapppolicy /packagefamily:$PackageFamilyName /nonremovable:0 >''
        remove-appxprovisionedpackage -packagename $PackageName -online -allusers >''
      }
      foreach ($appx in $($appxpackage |where {$_.PackageFullName -like "*$choice*"})) {
        $next = !1; foreach ($no in $skip) {if ($appx.PackageFullName -like "*$no*") {$next = !0}} ; if ($next) {continue}
        $PackageFullName = $appx.PackageFullName;
        ni "$store\Deprovisioned\$appx.PackageFamilyName" -force >''; $PackageFullName
        foreach ($sid in $users) {ni "$store\EndOfLife\$sid\$PackageFullName" -force >''} ; $eol += $PackageFullName
        dism /online /set-nonremovableapppolicy /packagefamily:$PackageFamilyName /nonremovable:0 >''
        remove-appxpackage -package $PackageFullName -allusers >''
      }
    }
Anyway, One of these I hope works in Windows 11 as well. I have not tested it yet in Windows 11 but most of the time the code works in both. If not, ill check back and then figure out what changes needed to be made here. I also just noticed there is also a TenForums domain as well. Just my luck :)

I attached a powershell script for the dynamic version. Powershell needs to be elevated and set-executionpolicy unrestricted needs to be set as well to run the script.
 

Attachments

Last edited:

My Computer

System One

  • OS
    Windows 10
    Computer type
    PC/Desktop
    Manufacturer/Model
    Potato Super 1337
See my recent blog post: Windows Backup App Handling Disappoints - Ed Tittel. I agree with many/most of the sentiments voiced here. Just wrote a story about WB for ComputerWorld, in which I concluded that it's not robust or standalone enough for me to relinquish daily use of image backup on my production machines, and weeklies on test PCs.
--Ed--
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo X380 Yoga
    CPU
    i7-8650U (8th Gen/Kaby Lake)
    Motherboard
    20LH000MUS (U3E1)
    Memory
    16 GB
    Graphics Card(s)
    Intel UHD Graphics 620
    Sound Card
    Integrated Conexant SmartAudio HD
    Monitor(s) Displays
    FlexView Display
    Screen Resolution
    1920x1080
    Hard Drives
    Toshiba 1 TB PCIe x3 NVMe SSD
    external 5TB Seagate USB-C attached HDD
    PSU
    Lenovo integrated 65W power brick
    Case
    Laptop
    Cooling
    Laptop
    Keyboard
    Integrated Lenovo ThinkPad keyboard
    Mouse
    touchscreen, touchpad
    Internet Speed
    GbE (Spectrum/Charter)
    Browser
    all of em
    Antivirus
    Defender
    Other Info
    Purchased early 2019 as Windows Insider test PC
After quite a while trying to remove the rubbish that the CBS package installs into the Start menu, I think I've finally cracked it!
The following will just hide 'Get Started', 'Windows Back up' and the new 'Continue from phone'. Leaving all functionality of the package.
Run the PowerShell script as an Administrator.
Thanks to AlphaChad9000 for the inspiration.
Powershell:
Function Restart-Process
{
    Param(    [Parameter(ValueFromPipelineByPropertyName)]$Name,
            [Parameter(ValueFromPipelineByPropertyName)]$Wait,
            [Parameter(ValueFromPipelineByPropertyName)]$Timeout,
            [Parameter(ValueFromPipelineByPropertyName)]$Kill,
            [Parameter(ValueFromPipelineByPropertyName)]$Start )
    Process
    {
        If ( $Kill )
        {
            $szSystem32Path = [Environment]::GetFolderPath("System")
            $szTaskKillBinary = "$szSystem32Path\taskkill.exe"
            Write-Host -ForegroundColor White "Killing the process '$Name'..."
            # Note, stopping Explorer like this will cause it to not automatically restart
            Start-Process -WindowStyle Hidden -Wait -FilePath $szTaskKillBinary -ArgumentList "/F /IM $Name"
        }
        Else
        {
            Write-Host -ForegroundColor White "Stopping the process '$Name'..."
            Stop-Process -Name $Name -Force    # Note, stopping Explorer like this will cause it to automatically restart
            Write-Host -ForegroundColor White "Waiting for the process '$Name' to stop..."
            Wait-Process -Name $Name -Timeout $Timeout
        }
        If ( $Start )
        {
            Write-Host -ForegroundColor White "Starting the process '$Name'..."
            If ( $Name -Eq "explorer.exe" )
            {
                Start-Process -WindowStyle Hidden -FilePath "cmd" -ArgumentList "/c start /wait $Name"
            }
            Else
            {
                # Wait doesn't work on explorer
                Start-Process -WindowStyle Hidden -Wait -FilePath $Name
            }
        }
        $szNameWithoutExtension = [io.path]::GetFilenameWithoutExtension( $Name )
        Write-Host -ForegroundColor White "Waiting for the process '$szNameWithoutExtension' to start..."
        $iCount = 0
        While ( ((Get-Process -Name $szNameWithoutExtension -ErrorAction SilentlyContinue).Count -Eq 0) -And ($iCount -lt $Timeout) )
        {
            Start-Sleep -Seconds 1
            $iCount++
        }
        Write-Host -ForegroundColor White "Waiting $Wait seconds..."
        Start-Sleep -Seconds $Wait
    }
}

Function Remove_NonRemovablePackage
{
    Param(     [Parameter(ValueFromPipelineByPropertyName)]$Name )
    Process
    {
        Write-Host -ForegroundColor White "Getting details for package '$($objAppx.PackageFamilyName)'..."
        $objAppx = Get-AppxPackage -AllUsers -Name $Name
        $szStoreRegKey = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore"
        $aszUserSIDs = @( "S-1-5-18" )
        If ( Test-Path $szStoreRegKey )
        {
            $aszUserSIDs += $((Get-ChildItem -Path $szStoreRegKey -ErrorAction SilentlyContinue | Where {$_ -Like '*S-1-5-21*'}).PSChildName)
        }
        Write-Host -ForegroundColor White "Setting package '$($objAppx.PackageFamilyName)' to Deprovisioned..."
        $objDeprovisionedRegKey = New-Item -Force -Path "$szStoreRegKey\Deprovisioned\$($objAppx.PackageFamilyName)"
        ForEach ( $szUserSID in $aszUserSIDs )
        {
            Write-Host -ForegroundColor White "Setting package '$($objAppx.PackageFamilyName)' to End-of-life for user SID '$szUserSID'..."
            $objEOLRegKey = New-Item -Force -Path "$szStoreRegKey\EndOfLife\$szUserSID\$($objAppx.PackageFullName)"
        }
        Write-Host -ForegroundColor White "Removing the NonRemovable flag from package '$($objAppx.PackageFamilyName)'..."
        DISM /Online /Set-NonRemovableAppPolicy /PackageFamily:$($objAppx.PackageFamilyName) /NonRemovable:0 | Out-Null
        Write-Host -ForegroundColor White "Removing package '$($objAppx.PackageFamilyName)'..."
        $objRemovedPackage = Remove-AppxPackage -AllUsers -Package $objAppx.PackageFullName
    }
}

Function Remove_StartMenuCBSItems
{
    Param(     [Parameter(ValueFromPipelineByPropertyName)]$Reinstall = $True,
            [Parameter(ValueFromPipelineByPropertyName)]$RestartExplorer = $True )
    Process
    {
        $szCBSName = "MicrosoftWindows.Client.CBS"
        $szCBSAppName = "$($szCBSName)_cw5n1h2txyewy"
        $szWindowsPath = [Environment]::GetFolderPath( "Windows" )
        $szCBSXMLPath = "$szWindowsPath\SystemApps\$($szCBSAppName)\appxmanifest.xml"
        Write-Host -ForegroundColor White "Creating a backup of the Appx manifest file for '$szCBSAppName'..."
        $szCurrentTime = (Get-Date).ToString( "yyyy-MM-dd_HH-mm-ss" )
        Copy-Item -Force -Path $szCBSXMLPath -Destination "$($szCBSXMLPath)_$($szCurrentTime).xml"
        Write-Host -ForegroundColor White "Reading the Appx manifest file for '$szCBSAppName'..."
        $xmlCBS = [XML]( Get-Content $szCBSXMLPath )
        Write-Host -ForegroundColor White "Removing the Start menu item 'Get Started'..."
        $xmlCBSNodes = $xmlCBS.Package.Applications.Application | Where-Object { $_.Id -Eq "WebExperienceHost" }
        $xmlCBSNodes.VisualElements.SetAttribute( "AppListEntry", "none" )
        Write-Host -ForegroundColor White "Removing the Start menu item 'Windows Back up'..."
        $xmlCBSNodes = $xmlCBS.Package.Applications.Application | Where-Object { $_.Id -Eq "WindowsBackup" }
        $xmlCBSNodes.VisualElements.SetAttribute( "AppListEntry", "none" )
        Write-Host -ForegroundColor White "Removing the Start menu item 'Continue from Phone'..."
        $xmlCBSNodes = $xmlCBS.Package.Applications.Application | Where-Object { $_.Id -Eq "CrossDeviceResumeApp" }
        $xmlCBSNodes.VisualElements.SetAttribute( "AppListEntry", "none" )
        $szUser = "Administrators"
        Write-Host -ForegroundColor White "Setting '$szUser' to have full control of '$szCBSXMLPath'..."
        $arPath = New-Object System.Security.AccessControl.FileSystemAccessRule( $szUser, "FullControl", $([System.Security.AccessControl.InheritanceFlags]::None), "None", "Allow" )
        $aclPath = $aclOrig = Get-Acl $szCBSXMLPath
        $aclPath.SetAccessRule( $arPath )
        Set-Acl $szCBSXMLPath $aclPath
        Write-Host -ForegroundColor White "Saving the updated Appx manifest file for '$szCBSAppName'..."
        $objUTF8WithoutBOM = New-Object System.Text.UTF8Encoding( $False )
        $objUTF8WithoutBOMSW = New-Object System.IO.StreamWriter( $szCBSXMLPath, $False, $objUTF8WithoutBOM )
        $xmlCBS.Save( $objUTF8WithoutBOMSW )
        $objUTF8WithoutBOMSW.Close()
        Write-Host -ForegroundColor White "Resetting permissions on '$szCBSXMLPath'..."
        Set-Acl $szCBSXMLPath $aclOrig
        If ( $Reinstall )
        {
            Remove_NonRemovablePackage -Name $szCBSName
            Write-Host -ForegroundColor White "Installing package '$szCBSAppName'..."
            Add-AppxPackage -ForceApplicationShutdown -DisableDevelopmentMode -Register $szCBSXMLPath
        }
        If ( $RestartExplorer )
        {
            Restart-Process -Name "explorer.exe" -Wait 0 -Timeout 5 -Kill:$True -Start:$True
        }
    }
}

Remove_StartMenuCBSItems
 

Attachments

Last edited:

My Computer

System One

  • OS
    Windows 11
Great script.

Just one note, if you tamper with Client.CBS's AppxManifest.xml... Windows Update will refuse to install the next CU because the signed hashes won't match WinSxS (gets stuck at 25% progress). Not until after you restore the original AppxManifest.xml will WU finish. Well, that's my experience.

Maybe you can first backup AppxManifest.xml, re-register Client.CBS, and then restore the backup file.
 

My Computer

System One

  • OS
    Windows 7
Thanks for the tips, I'll have a look at that on Monday.
Just having tried the script on a different machine it's failing.. so more work to do it seems!!
 

My Computer

System One

  • OS
    Windows 11
Back
Top Bottom