Windows 10 / 11 post WU installation cleanup script


Hey, folks,

Thanks to a lot of wonderful folks here, we've made mention in a previous Insider topic about cleanup steps that can be run after Windows Update performs a major version install.

Though these have been mentioned before by many, many people, it was this post by @IanMosley that started me on implementing this as an step to clean up both my main Windows installation and all the VMs I have for testing:


A few posts later, @geneo offered some good advice on how to streamline that set of commands in this post:


Which, eventually, led me to mentioning that I had put them all in a batch file to run after major WU installs:


Thus far I've just been right clicking the file and selecting Run as Administrator to run it - not all that hard. But, today, I went in search of a self-elevation script for batch files so I can just double click the file and let it do its thing.

I found a good thread at Stack Overflow that has a few methods mentioned, including direct self-elevation, elevation via WSH, via VBScripting, and even via Powershell. I tested several ones, and found that this particular script works best and is no nonsense and has no fuss:


I've also added a pause command at the end so that the window remains on screen after completing so you can see the results, and a simple keypress will close it out.

So, here is the code as I'm using it now:

Batch:
:: Elevation script from StackOverflow
:: https://stackoverflow.com/a/28467343

:: Begin Elevation script

@ECHO OFF
setlocal EnableDelayedExpansion

::net file to test privileges, 1>NUL redirects output, 2>NUL redirects errors
NET FILE 1>NUL 2>NUL
if '%errorlevel%' == '0' ( goto START ) else ( goto getPrivileges )

:getPrivileges
if '%1'=='ELEV' ( goto START )

set "batchPath=%~f0"
set "batchArgs=ELEV"

::Add quotes to the batch path, if needed
set "script=%0"
set script=%script:"=%
IF '%0'=='!script!' ( GOTO PathQuotesDone )
    set "batchPath=""%batchPath%"""
:PathQuotesDone

::Add quotes to the arguments, if needed.
:ArgLoop
IF '%1'=='' ( GOTO EndArgLoop ) else ( GOTO AddArg )
    :AddArg
    set "arg=%1"
    set arg=%arg:"=%
    IF '%1'=='!arg!' ( GOTO NoQuotes )
        set "batchArgs=%batchArgs% "%1""
        GOTO QuotesDone
        :NoQuotes
        set "batchArgs=%batchArgs% %1"
    :QuotesDone
    shift
    GOTO ArgLoop
:EndArgLoop

::Create and run the vb script to elevate the batch file
ECHO Set UAC = CreateObject^("Shell.Application"^) > "%temp%\OEgetPrivileges.vbs"
ECHO UAC.ShellExecute "cmd", "/c ""!batchPath! !batchArgs!""", "", "runas", 1 >> "%temp%\OEgetPrivileges.vbs"
"%temp%\OEgetPrivileges.vbs"
exit /B

:START
::Remove the elevation tag and set the correct working directory
IF '%1'=='ELEV' ( shift /1 )
cd /d %~dp0

::Do your adminy thing here...

:: End Elevation Script
:: Begin cleanup script

start /B /wait rundll32.exe pnpclean.dll,RunDLL_PnpClean /drivers/maxclean
start /B /wait dism /Online /Cleanup-Image /CheckHealth
start /B /wait sfc /scannow
start /B /wait dism /Online /Cleanup-Image /RestoreHealth
start /B /wait dism /online /Cleanup-Image /Startcomponentcleanup /resetbase

pause

You can copy the contents and save it to a file with a .BAT extension and it should work just fine, tested across Windows 10 and Windows 10 Insider Preview, plus Windows 11 (RTM, Release Preview, Beta, Dev and Canary current builds).

If you'd rather just download the batch file, here you go.

Download

Enjoy!

P.S. - if you have any suggestions on improving it / adding more functionality / expanding the scope of the cleanup, feel free to comment below!
 
Windows Build/Version
Windows 10 / Windows 11

Attachments

Last edited by a moderator:
To further clarify, and I must stress this is wholly my own conjecture:

I think that when WU is performing the update, and has rebooted, and you get the black screen with the percentages, that it's entirely possible that Windows is unmounting (dismounting?) one more or more 'superfluous' drives (like thumb drives) in order to speed up the update process. So, cleaning drivers out when devices have been unmounted (I really prefer dismount, but, well, in Linux, it's umount, right? So, unmount it is) is obviously not the best time to remove old, unused drivers lol. And yet, Microsoft WU were apparently doing exactly that.

However, when your system is up and running, it won't deleted drivers that are in-use - IOW, if devices are presently connected, and thus the driver is in use, the command won't remove the driver. The same holds true for rapr.exe (Driver Store Explorer) - if the driver is in use, not only will the 'Mark old drivers' function not select the active drivers, but even if you try to force remove a driver that is in use, if it is tied to a critical process, rapr.exe refuses to remove the driver.

Since we all make full system images before taking WU build updates, and we all also make regular driver backups via DISM / rapr.exe, we're perfectly fine running this.

I mean - we all do make our regular backups, right?

Right?

:ROFLMAO:
 
Last edited:

My Computers

System One System Two

  • OS
    Windows 11 23H2 Current build
    Computer type
    PC/Desktop
    Manufacturer/Model
    HomeBrew
    CPU
    AMD Ryzen 9 3950X
    Motherboard
    MSI MEG X570 GODLIKE
    Memory
    4 * 32 GB - Corsair Vengeance 3600 MHz
    Graphics Card(s)
    EVGA GeForce RTX 3080 Ti XC3 ULTRA GAMING (12G-P5-3955-KR)
    Sound Card
    Realtek® ALC1220 Codec
    Monitor(s) Displays
    2x Eve Spectrum ES07D03 4K Gaming Monitor (Matte) | Eve Spectrum ES07DC9 4K Gaming Monitor (Glossy)
    Screen Resolution
    3x 3840 x 2160
    Hard Drives
    3x Samsung 980 Pro NVMe PCIe 4 M.2 2 TB SSD (MZ-V8P2T0B/AM) } 3x Sabrent Rocket NVMe 4.0 1 TB SSD (USB)
    PSU
    PC Power & Cooling’s Silencer Series 1050 Watt, 80 Plus Platinum
    Case
    Fractal Design Define 7 XL Dark ATX Full Tower Case
    Cooling
    Arctic Liquid Freezer III 420 RGB + Air 3x 140mm case fans (pull front) + 1x 120 mm (push back) and 1 x 120 mm (pull bottom)
    Keyboard
    SteelSeries Apex Pro Wired Gaming Keyboard
    Mouse
    Logitech MX Master 3S | MX Master 3 for Business
    Internet Speed
    AT&T LightSpeed Gigabit Duplex Ftth
    Browser
    Nightly (default) + Firefox (stable), Chrome, Edge , Arc
    Antivirus
    Defender + MB 5 Beta
  • Operating System
    ChromeOS Flex Dev Channel (current)
    Computer type
    Laptop
    Manufacturer/Model
    Dell Latitude E5470
    CPU
    Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz, 2501 Mhz, 2 Core(s), 4 Logical Processor(s)
    Motherboard
    Dell
    Memory
    16 GB
    Graphics card(s)
    Intel(R) HD Graphics 520
    Sound Card
    Intel(R) HD Graphics 520 + RealTek Audio
    Monitor(s) Displays
    Dell laptop display 15"
    Screen Resolution
    1920 * 1080
    Hard Drives
    Toshiba 128GB M.2 22300 drive
    INTEL Cherryville 520 Series SSDSC2CW180A 180 GB SATA III SSD
    PSU
    Dell
    Case
    Dell
    Cooling
    Dell
    Mouse
    Logitech MX Master 3S (shared w. Sys 1) | Dell TouchPad
    Keyboard
    Dell
    Internet Speed
    AT&T LightSpeed Gigabit Duplex Ftth
I mean - we all do make our regular backups, right?

Right?

:ROFLMAO:

I refuse to answer that on the grounds that I am very likely stupid. (Members are free to quote me)


Yeah nah backups are vital.

I will be testing this very shortly, just waiting for Windows Update to finish.
 

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 data backed up - as for System, I'm less fanatical about it anymore. I can be back up and running in a matter of hours, and have full functionality in a working day.
 

My Computers

System One System Two

  • OS
    Windows 11 23H2 Current build
    Computer type
    PC/Desktop
    Manufacturer/Model
    HomeBrew
    CPU
    AMD Ryzen 9 3950X
    Motherboard
    MSI MEG X570 GODLIKE
    Memory
    4 * 32 GB - Corsair Vengeance 3600 MHz
    Graphics Card(s)
    EVGA GeForce RTX 3080 Ti XC3 ULTRA GAMING (12G-P5-3955-KR)
    Sound Card
    Realtek® ALC1220 Codec
    Monitor(s) Displays
    2x Eve Spectrum ES07D03 4K Gaming Monitor (Matte) | Eve Spectrum ES07DC9 4K Gaming Monitor (Glossy)
    Screen Resolution
    3x 3840 x 2160
    Hard Drives
    3x Samsung 980 Pro NVMe PCIe 4 M.2 2 TB SSD (MZ-V8P2T0B/AM) } 3x Sabrent Rocket NVMe 4.0 1 TB SSD (USB)
    PSU
    PC Power & Cooling’s Silencer Series 1050 Watt, 80 Plus Platinum
    Case
    Fractal Design Define 7 XL Dark ATX Full Tower Case
    Cooling
    Arctic Liquid Freezer III 420 RGB + Air 3x 140mm case fans (pull front) + 1x 120 mm (push back) and 1 x 120 mm (pull bottom)
    Keyboard
    SteelSeries Apex Pro Wired Gaming Keyboard
    Mouse
    Logitech MX Master 3S | MX Master 3 for Business
    Internet Speed
    AT&T LightSpeed Gigabit Duplex Ftth
    Browser
    Nightly (default) + Firefox (stable), Chrome, Edge , Arc
    Antivirus
    Defender + MB 5 Beta
  • Operating System
    ChromeOS Flex Dev Channel (current)
    Computer type
    Laptop
    Manufacturer/Model
    Dell Latitude E5470
    CPU
    Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz, 2501 Mhz, 2 Core(s), 4 Logical Processor(s)
    Motherboard
    Dell
    Memory
    16 GB
    Graphics card(s)
    Intel(R) HD Graphics 520
    Sound Card
    Intel(R) HD Graphics 520 + RealTek Audio
    Monitor(s) Displays
    Dell laptop display 15"
    Screen Resolution
    1920 * 1080
    Hard Drives
    Toshiba 128GB M.2 22300 drive
    INTEL Cherryville 520 Series SSDSC2CW180A 180 GB SATA III SSD
    PSU
    Dell
    Case
    Dell
    Cooling
    Dell
    Mouse
    Logitech MX Master 3S (shared w. Sys 1) | Dell TouchPad
    Keyboard
    Dell
    Internet Speed
    AT&T LightSpeed Gigabit Duplex Ftth
I have a system backup I can go to, I only make a minimal amount now.
I just need to make sure I note any major changes since my last backup so as to be able to redo them if a system restore has been performed (Then I make a new system backup)
 

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.
Make a new (manual) system restore with today's date.

Faster and easier.
 

My Computers

System One System Two

  • OS
    Windows 11 23H2 Current build
    Computer type
    PC/Desktop
    Manufacturer/Model
    HomeBrew
    CPU
    AMD Ryzen 9 3950X
    Motherboard
    MSI MEG X570 GODLIKE
    Memory
    4 * 32 GB - Corsair Vengeance 3600 MHz
    Graphics Card(s)
    EVGA GeForce RTX 3080 Ti XC3 ULTRA GAMING (12G-P5-3955-KR)
    Sound Card
    Realtek® ALC1220 Codec
    Monitor(s) Displays
    2x Eve Spectrum ES07D03 4K Gaming Monitor (Matte) | Eve Spectrum ES07DC9 4K Gaming Monitor (Glossy)
    Screen Resolution
    3x 3840 x 2160
    Hard Drives
    3x Samsung 980 Pro NVMe PCIe 4 M.2 2 TB SSD (MZ-V8P2T0B/AM) } 3x Sabrent Rocket NVMe 4.0 1 TB SSD (USB)
    PSU
    PC Power & Cooling’s Silencer Series 1050 Watt, 80 Plus Platinum
    Case
    Fractal Design Define 7 XL Dark ATX Full Tower Case
    Cooling
    Arctic Liquid Freezer III 420 RGB + Air 3x 140mm case fans (pull front) + 1x 120 mm (push back) and 1 x 120 mm (pull bottom)
    Keyboard
    SteelSeries Apex Pro Wired Gaming Keyboard
    Mouse
    Logitech MX Master 3S | MX Master 3 for Business
    Internet Speed
    AT&T LightSpeed Gigabit Duplex Ftth
    Browser
    Nightly (default) + Firefox (stable), Chrome, Edge , Arc
    Antivirus
    Defender + MB 5 Beta
  • Operating System
    ChromeOS Flex Dev Channel (current)
    Computer type
    Laptop
    Manufacturer/Model
    Dell Latitude E5470
    CPU
    Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz, 2501 Mhz, 2 Core(s), 4 Logical Processor(s)
    Motherboard
    Dell
    Memory
    16 GB
    Graphics card(s)
    Intel(R) HD Graphics 520
    Sound Card
    Intel(R) HD Graphics 520 + RealTek Audio
    Monitor(s) Displays
    Dell laptop display 15"
    Screen Resolution
    1920 * 1080
    Hard Drives
    Toshiba 128GB M.2 22300 drive
    INTEL Cherryville 520 Series SSDSC2CW180A 180 GB SATA III SSD
    PSU
    Dell
    Case
    Dell
    Cooling
    Dell
    Mouse
    Logitech MX Master 3S (shared w. Sys 1) | Dell TouchPad
    Keyboard
    Dell
    Internet Speed
    AT&T LightSpeed Gigabit Duplex Ftth
Downloaded the script and used it, one command stuck at 62.3%.
Later tried individual commands, found that 'Restore Health' command stops at 62.3% and takes a long time to complete.
Perhaps I should have been patient earlier !
Thanks for the script, and regards
 

My Computer

System One

  • OS
    Windows 11 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Assembled
    CPU
    Intel i7-7700k
    Motherboard
    Asrock Z270 Taichi
    Memory
    16 GB
    Graphics Card(s)
    Intel 630 onboard
    Sound Card
    Onboard
    Monitor(s) Displays
    Benq 1080p
    Screen Resolution
    1920*1080
    Hard Drives
    NVMe, SSD and HDD
    Case
    Cooler Master
    Keyboard
    Asus wireless
    Mouse
    Asus Wireless
    Internet Speed
    75 Mbps
    Browser
    Chrome, Edge, Arc
    Antivirus
    Windows Defender
I may have found a new alternative that does all this (and more) but even better.


I've had this (portable version) for a while on my system, but I had forgotten about it - until I went to check for updates of all my portable software versions.

It has all the usual functions from the collection of scripts that we've come to love (and use!) a lot on our systems, plus a whole slew of other stuff.

Why is this anything special?

Well, for one, it's a GUI, as some people have asked for, making it much easier to use. Secondly, it has some intelligent grouping, as seen in the green box:

Screenshot 2024-05-20 144318.png

Screenshot 2024-05-20 144324.png

In red, A few cool things with easy access - Disk Cleanup, SFC, System Logs, etc., plus the Device Drivers section, OEM drivers repository (similar to Driver Store Explorer), and an easy method to disable Signature Verification in order to install a specific driver - with instructions that you can easily follow to get the job done on every single item.

In green, all of the specific items from the compiled batch file from here, with a big advantage over the GUI made by rpro - it only asks you once for UAC elevation,m when you first run it.

This might be my new go to for all the VMs that I am running. I'll test when we get the next round of build updates.

This app is from the same dev who also write Horodruin as well as the tiny PELinks app. Well worth a look at if you're interested in a (GUI-based) alternative.
 

My Computers

System One System Two

  • OS
    Windows 11 23H2 Current build
    Computer type
    PC/Desktop
    Manufacturer/Model
    HomeBrew
    CPU
    AMD Ryzen 9 3950X
    Motherboard
    MSI MEG X570 GODLIKE
    Memory
    4 * 32 GB - Corsair Vengeance 3600 MHz
    Graphics Card(s)
    EVGA GeForce RTX 3080 Ti XC3 ULTRA GAMING (12G-P5-3955-KR)
    Sound Card
    Realtek® ALC1220 Codec
    Monitor(s) Displays
    2x Eve Spectrum ES07D03 4K Gaming Monitor (Matte) | Eve Spectrum ES07DC9 4K Gaming Monitor (Glossy)
    Screen Resolution
    3x 3840 x 2160
    Hard Drives
    3x Samsung 980 Pro NVMe PCIe 4 M.2 2 TB SSD (MZ-V8P2T0B/AM) } 3x Sabrent Rocket NVMe 4.0 1 TB SSD (USB)
    PSU
    PC Power & Cooling’s Silencer Series 1050 Watt, 80 Plus Platinum
    Case
    Fractal Design Define 7 XL Dark ATX Full Tower Case
    Cooling
    Arctic Liquid Freezer III 420 RGB + Air 3x 140mm case fans (pull front) + 1x 120 mm (push back) and 1 x 120 mm (pull bottom)
    Keyboard
    SteelSeries Apex Pro Wired Gaming Keyboard
    Mouse
    Logitech MX Master 3S | MX Master 3 for Business
    Internet Speed
    AT&T LightSpeed Gigabit Duplex Ftth
    Browser
    Nightly (default) + Firefox (stable), Chrome, Edge , Arc
    Antivirus
    Defender + MB 5 Beta
  • Operating System
    ChromeOS Flex Dev Channel (current)
    Computer type
    Laptop
    Manufacturer/Model
    Dell Latitude E5470
    CPU
    Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz, 2501 Mhz, 2 Core(s), 4 Logical Processor(s)
    Motherboard
    Dell
    Memory
    16 GB
    Graphics card(s)
    Intel(R) HD Graphics 520
    Sound Card
    Intel(R) HD Graphics 520 + RealTek Audio
    Monitor(s) Displays
    Dell laptop display 15"
    Screen Resolution
    1920 * 1080
    Hard Drives
    Toshiba 128GB M.2 22300 drive
    INTEL Cherryville 520 Series SSDSC2CW180A 180 GB SATA III SSD
    PSU
    Dell
    Case
    Dell
    Cooling
    Dell
    Mouse
    Logitech MX Master 3S (shared w. Sys 1) | Dell TouchPad
    Keyboard
    Dell
    Internet Speed
    AT&T LightSpeed Gigabit Duplex Ftth
I may have found a new alternative that does all this (and more) but even better.


I've had this (portable version) for a while on my system, but I had forgotten about it - until I went to check for updates of all my portable software versions.

It has all the usual functions from the collection of scripts that we've come to love (and use!) a lot on our systems, plus a whole slew of other stuff.

Why is this anything special?

Well, for one, it's a GUI, as some people have asked for, making it much easier to use. Secondly, it has some intelligent grouping, as seen in the green box:

View attachment 96777

View attachment 96778

In red, A few cool things with easy access - Disk Cleanup, SFC, System Logs, etc., plus the Device Drivers section, OEM drivers repository (similar to Driver Store Explorer), and an easy method to disable Signature Verification in order to install a specific driver - with instructions that you can easily follow to get the job done on every single item.

In green, all of the specific items from the compiled batch file from here, with a big advantage over the GUI made by rpro - it only asks you once for UAC elevation,m when you first run it.

This might be my new go to for all the VMs that I am running. I'll test when we get the next round of build updates.

This app is from the same dev who also write Horodruin as well as the tiny PELinks app. Well worth a look at if you're interested in a (GUI-based) alternative.

Many Thanks! I just tried this and I really like it, barring any gotchas that show up.

It's especially nice that it gives a short description of each command. That's valuable for those of us that are not experts.
 

My Computer

System One

  • OS
    win 11 24H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell 790 (Mt)
    CPU
    i5-2400
    Motherboard
    Dell
    Memory
    24 GB DDR-3
    Graphics Card(s)
    Intel HD Graphics 2000 (on-board)
    Sound Card
    Intel Cougar Point PCH [B2] (On-Board)
    Monitor(s) Displays
    LG 27MN60T
Yeah, plus he has added a few other native commands that I can use every now and again that make it super worthwhile.

And ya can't beat the price!
 

My Computers

System One System Two

  • OS
    Windows 11 23H2 Current build
    Computer type
    PC/Desktop
    Manufacturer/Model
    HomeBrew
    CPU
    AMD Ryzen 9 3950X
    Motherboard
    MSI MEG X570 GODLIKE
    Memory
    4 * 32 GB - Corsair Vengeance 3600 MHz
    Graphics Card(s)
    EVGA GeForce RTX 3080 Ti XC3 ULTRA GAMING (12G-P5-3955-KR)
    Sound Card
    Realtek® ALC1220 Codec
    Monitor(s) Displays
    2x Eve Spectrum ES07D03 4K Gaming Monitor (Matte) | Eve Spectrum ES07DC9 4K Gaming Monitor (Glossy)
    Screen Resolution
    3x 3840 x 2160
    Hard Drives
    3x Samsung 980 Pro NVMe PCIe 4 M.2 2 TB SSD (MZ-V8P2T0B/AM) } 3x Sabrent Rocket NVMe 4.0 1 TB SSD (USB)
    PSU
    PC Power & Cooling’s Silencer Series 1050 Watt, 80 Plus Platinum
    Case
    Fractal Design Define 7 XL Dark ATX Full Tower Case
    Cooling
    Arctic Liquid Freezer III 420 RGB + Air 3x 140mm case fans (pull front) + 1x 120 mm (push back) and 1 x 120 mm (pull bottom)
    Keyboard
    SteelSeries Apex Pro Wired Gaming Keyboard
    Mouse
    Logitech MX Master 3S | MX Master 3 for Business
    Internet Speed
    AT&T LightSpeed Gigabit Duplex Ftth
    Browser
    Nightly (default) + Firefox (stable), Chrome, Edge , Arc
    Antivirus
    Defender + MB 5 Beta
  • Operating System
    ChromeOS Flex Dev Channel (current)
    Computer type
    Laptop
    Manufacturer/Model
    Dell Latitude E5470
    CPU
    Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz, 2501 Mhz, 2 Core(s), 4 Logical Processor(s)
    Motherboard
    Dell
    Memory
    16 GB
    Graphics card(s)
    Intel(R) HD Graphics 520
    Sound Card
    Intel(R) HD Graphics 520 + RealTek Audio
    Monitor(s) Displays
    Dell laptop display 15"
    Screen Resolution
    1920 * 1080
    Hard Drives
    Toshiba 128GB M.2 22300 drive
    INTEL Cherryville 520 Series SSDSC2CW180A 180 GB SATA III SSD
    PSU
    Dell
    Case
    Dell
    Cooling
    Dell
    Mouse
    Logitech MX Master 3S (shared w. Sys 1) | Dell TouchPad
    Keyboard
    Dell
    Internet Speed
    AT&T LightSpeed Gigabit Duplex Ftth
Yeah, plus he has added a few other native commands that I can use every now and again that make it super worthwhile.

And ya can't beat the price!

The only thing that doesn't make sense so far is the MS store app section. I guess I just don't understand that subject enough to even use those functions.

Also, I noticed that I always get the UAC prompt every time I run it. Maybe I misunderstood your post about this, or is there some setting I missed?
 
Last edited:

My Computer

System One

  • OS
    win 11 24H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell 790 (Mt)
    CPU
    i5-2400
    Motherboard
    Dell
    Memory
    24 GB DDR-3
    Graphics Card(s)
    Intel HD Graphics 2000 (on-board)
    Sound Card
    Intel Cougar Point PCH [B2] (On-Board)
    Monitor(s) Displays
    LG 27MN60T
I may have found a new alternative that does all this (and more) but even better.


I've had this (portable version) for a while on my system, but I had forgotten about it - until I went to check for updates of all my portable software versions.

It has all the usual functions from the collection of scripts that we've come to love (and use!) a lot on our systems, plus a whole slew of other stuff.

Why is this anything special?

Well, for one, it's a GUI, as some people have asked for, making it much easier to use. Secondly, it has some intelligent grouping, as seen in the green box:

View attachment 96777

View attachment 96778

In red, A few cool things with easy access - Disk Cleanup, SFC, System Logs, etc., plus the Device Drivers section, OEM drivers repository (similar to Driver Store Explorer), and an easy method to disable Signature Verification in order to install a specific driver - with instructions that you can easily follow to get the job done on every single item.

In green, all of the specific items from the compiled batch file from here, with a big advantage over the GUI made by rpro - it only asks you once for UAC elevation,m when you first run it.

This might be my new go to for all the VMs that I am running. I'll test when we get the next round of build updates.

This app is from the same dev who also write Horodruin as well as the tiny PELinks app. Well worth a look at if you're interested in a (GUI-based) alternative.

Trying this great tool out now :-) @johngalt and @Ghot

As a test I scanned for leftovers Microsoft Store with Sys_Minion and then compared the results with the list of Windows Store Apps listed in Revo Uninstaller and it appears Sys_Minion found plenty of leftovers that Revo missed.

(See screenshots below)

Additional Note: I still could not get rid of the "Get Started" app under Provisioned Apps even though the entry shows as un-installed but still remains functional in the Start Menu.


Sys_Minion.jpg

Sys_Minion MS Store.jpgREVO - Windows Store Apps.jpg
 
Last edited:

My Computers

System One System Two

  • OS
    Windows 11 Pro x 2 + Insider Dev
    Computer type
    PC/Desktop
    Manufacturer/Model
    My first abomination, I call it the Money Pit One
    CPU
    Intel Core i9 12900K @ 5.2 GHz
    Motherboard
    ASUS ROG MAXIMUS Z690 HERO
    Memory
    2 x Corsair Dominator Platinum RGB (4x16GB Total) DDR5-6200 CL36 Dual Channel Kit
    Graphics Card(s)
    EVGA GeForce RTX 3080 XC3 ULTRA GAMING 10GB GDDR6X
    Sound Card
    ROG SupremeFX ALC4082 with ESS® ES9018Q2C DAC for pinpoint positioning and dynamics
    Monitor(s) Displays
    2 x Samsung 43" HDR Neo QLED Mini-LED Tizen Smart TV (QN43QN90DAFXZC) 2024
    Screen Resolution
    1920 x 1080 @ 150 DPI & 120Hz
    Hard Drives
    2 x Samsung 980 Series - 250GB PCIe Gen3. X4 NVMe 1.4 - M.2 Internal SSD (Windows 11 Pro Dual boot)
    PSU
    Corsair HX1000i 80+ Platinum Modular Power Supply 1000W
    Case
    Phanteks Enthoo Luxe Tempered Glass Full Tower Case - Black
    Cooling
    CORSAIR iCUE H150i RGB Elite 360mm Liquid CPU Cooler
    Keyboard
    Perixx PERIBOARD-732B Wireless Mini Backlit USB Keyboard with Low Profile Keys - US Layout
    Mouse
    Logitech MX Anywhere 2S Wireless Mouse
    Internet Speed
    1000 Mbps
    Browser
    Latest Version Of Firefox & Microsoft Edge Chromium Stable
    Antivirus
    ESET Internet Security
    Other Info
    LG Electronics 14x Sata Blu-ray Disk Rewriter - WH14NS4O
    2 x OREI 4K 4x2 HDMI Matrix Switch With ARC Audio Extraction, HDR & Downscaling (UHD-402D) so I can send the output of my Cable Box, Roku, or any of my 4 computers to either of my TV's separately or simultaneously.
  • Operating System
    Windows 11 Pro x 2
    Computer type
    PC/Desktop
    Manufacturer/Model
    My second abomination, I call it the Money Pit Two
    CPU
    Intel Core i9 12900K @ 5.2 GHz
    Motherboard
    ASUS ROG STRIX Z690-F GAMING WIFI
    Memory
    2 x Vengeance RGB 32GB DDR5 6400MHz CL32 Dual Channel Kit (4x16GB Total) Black
    Graphics card(s)
    ASUS TUF Gaming GeForce RTX 3070 Ti OC Edition 8 GB GDDR6X
    Sound Card
    ROG SupremeFX ALC4082 with ESS® ES9018Q2C DAC for pinpoint positioning and dynamics
    Monitor(s) Displays
    2 x Samsung 43" HDR Neo QLED Mini-LED Tizen Smart TV (QN43QN90DAFXZC) 2024
    Screen Resolution
    1920 x 1080 @ 150 DPI & 120Hz
    Hard Drives
    2 x Samsung 980 Series - 250GB PCIe Gen3. X4 NVMe 1.4 - M.2 Internal SSD (Windows 11 Pro Dual boot)
    PSU
    Corsair AX860 - 860W Modular Power Supply
    Case
    Phanteks Enthoo Pro Tempered Glass Full Tower Case - Black
    Cooling
    CORSAIR iCUE H150i RGB Elite 360mm Liquid CPU Cooler
    Mouse
    Logitech MX Anywhere 2S Wireless Mouse
    Keyboard
    Perixx PERIBOARD-326 Wired Mini Backlit USB Keyboard with Low Profile Keys - US Layout
    Internet Speed
    1000 Mbps
    Browser
    Latest Version Of Firefox & EDGE Chromium Stable
    Antivirus
    ESET Internet Security
    Other Info
    LG Electronics 14x Sata Blu-ray Disk Rewriter - WH14NS4O
    2 x OREI 4K 4x2 HDMI Matrix Switch With ARC Audio Extraction, HDR & Downscaling (UHD-402D) so I can send the output of my Cable Box, Roku, or any of my 4 computers to either of my TV's separately or simultaneously.
The only thing that doesn't make sense so far is the MS store app section. I guess I just don't understand that subject enough to even use those functions.

Also, I noticed that I always get the UAC prompt every time I run it. Maybe I misunderstood your post about this, or is there some setting I missed?

@IownAmoneyPit's previous post should help explain what the MS Store section is about. If you need more info, post back.

As for UAC - yes, some of the commands that are run can only be run with admin level privileges, so it starts the app with admin privileges by default.

Also, sorry for such a late reply.
 

My Computers

System One System Two

  • OS
    Windows 11 23H2 Current build
    Computer type
    PC/Desktop
    Manufacturer/Model
    HomeBrew
    CPU
    AMD Ryzen 9 3950X
    Motherboard
    MSI MEG X570 GODLIKE
    Memory
    4 * 32 GB - Corsair Vengeance 3600 MHz
    Graphics Card(s)
    EVGA GeForce RTX 3080 Ti XC3 ULTRA GAMING (12G-P5-3955-KR)
    Sound Card
    Realtek® ALC1220 Codec
    Monitor(s) Displays
    2x Eve Spectrum ES07D03 4K Gaming Monitor (Matte) | Eve Spectrum ES07DC9 4K Gaming Monitor (Glossy)
    Screen Resolution
    3x 3840 x 2160
    Hard Drives
    3x Samsung 980 Pro NVMe PCIe 4 M.2 2 TB SSD (MZ-V8P2T0B/AM) } 3x Sabrent Rocket NVMe 4.0 1 TB SSD (USB)
    PSU
    PC Power & Cooling’s Silencer Series 1050 Watt, 80 Plus Platinum
    Case
    Fractal Design Define 7 XL Dark ATX Full Tower Case
    Cooling
    Arctic Liquid Freezer III 420 RGB + Air 3x 140mm case fans (pull front) + 1x 120 mm (push back) and 1 x 120 mm (pull bottom)
    Keyboard
    SteelSeries Apex Pro Wired Gaming Keyboard
    Mouse
    Logitech MX Master 3S | MX Master 3 for Business
    Internet Speed
    AT&T LightSpeed Gigabit Duplex Ftth
    Browser
    Nightly (default) + Firefox (stable), Chrome, Edge , Arc
    Antivirus
    Defender + MB 5 Beta
  • Operating System
    ChromeOS Flex Dev Channel (current)
    Computer type
    Laptop
    Manufacturer/Model
    Dell Latitude E5470
    CPU
    Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz, 2501 Mhz, 2 Core(s), 4 Logical Processor(s)
    Motherboard
    Dell
    Memory
    16 GB
    Graphics card(s)
    Intel(R) HD Graphics 520
    Sound Card
    Intel(R) HD Graphics 520 + RealTek Audio
    Monitor(s) Displays
    Dell laptop display 15"
    Screen Resolution
    1920 * 1080
    Hard Drives
    Toshiba 128GB M.2 22300 drive
    INTEL Cherryville 520 Series SSDSC2CW180A 180 GB SATA III SSD
    PSU
    Dell
    Case
    Dell
    Cooling
    Dell
    Mouse
    Logitech MX Master 3S (shared w. Sys 1) | Dell TouchPad
    Keyboard
    Dell
    Internet Speed
    AT&T LightSpeed Gigabit Duplex Ftth
Additional Note: I still could not get rid of the "Get Started" app under Provisioned Apps even though the entry shows as un-installed but still remains functional in the Start Menu.
There's actually two "Get Started" apps. The original was renamed to Microsoft.GetStarted ("Tips"), and is removable.
The new "Get Started" is part of Client.CBS, which can't be removed without breaking your desktop experience.

Most app removers don't make this clarification.
 

My Computer

System One

  • OS
    Windows 7
@IownAmoneyPit's previous post should help explain what the MS Store section is about. If you need more info, post back.

Thanks. I am curious about one thing. On some store apps, I get a cryptic error message when I try to remove them. For example if I select "Microsoft.MixedReality.Portal", I get the following error when I click Commit:

Remove-AppxPackage : The parameter is incorrect.
Package Manager aborted the Remove operation because an invalid argument was passed:
Microsoft.MixedReality.Portal_2000.21051.1282.0_x64__8wekyb3d8.
At line:1 char:1
+ Remove-AppxPackage -AllUsers -Package Microsoft.MixedReality.Portal_2 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Remove-AppxPackage], COMException
+ FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.Wi
ndows.Appx.PackageManager.Commands.RemoveAppxPackageCommand

What went wrong?
 

My Computer

System One

  • OS
    win 11 24H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell 790 (Mt)
    CPU
    i5-2400
    Motherboard
    Dell
    Memory
    24 GB DDR-3
    Graphics Card(s)
    Intel HD Graphics 2000 (on-board)
    Sound Card
    Intel Cougar Point PCH [B2] (On-Board)
    Monitor(s) Displays
    LG 27MN60T
That I don't know about - I've not actually seen that message, but I also don't remove a whole lot from a stock install to begin with.
 

My Computers

System One System Two

  • OS
    Windows 11 23H2 Current build
    Computer type
    PC/Desktop
    Manufacturer/Model
    HomeBrew
    CPU
    AMD Ryzen 9 3950X
    Motherboard
    MSI MEG X570 GODLIKE
    Memory
    4 * 32 GB - Corsair Vengeance 3600 MHz
    Graphics Card(s)
    EVGA GeForce RTX 3080 Ti XC3 ULTRA GAMING (12G-P5-3955-KR)
    Sound Card
    Realtek® ALC1220 Codec
    Monitor(s) Displays
    2x Eve Spectrum ES07D03 4K Gaming Monitor (Matte) | Eve Spectrum ES07DC9 4K Gaming Monitor (Glossy)
    Screen Resolution
    3x 3840 x 2160
    Hard Drives
    3x Samsung 980 Pro NVMe PCIe 4 M.2 2 TB SSD (MZ-V8P2T0B/AM) } 3x Sabrent Rocket NVMe 4.0 1 TB SSD (USB)
    PSU
    PC Power & Cooling’s Silencer Series 1050 Watt, 80 Plus Platinum
    Case
    Fractal Design Define 7 XL Dark ATX Full Tower Case
    Cooling
    Arctic Liquid Freezer III 420 RGB + Air 3x 140mm case fans (pull front) + 1x 120 mm (push back) and 1 x 120 mm (pull bottom)
    Keyboard
    SteelSeries Apex Pro Wired Gaming Keyboard
    Mouse
    Logitech MX Master 3S | MX Master 3 for Business
    Internet Speed
    AT&T LightSpeed Gigabit Duplex Ftth
    Browser
    Nightly (default) + Firefox (stable), Chrome, Edge , Arc
    Antivirus
    Defender + MB 5 Beta
  • Operating System
    ChromeOS Flex Dev Channel (current)
    Computer type
    Laptop
    Manufacturer/Model
    Dell Latitude E5470
    CPU
    Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz, 2501 Mhz, 2 Core(s), 4 Logical Processor(s)
    Motherboard
    Dell
    Memory
    16 GB
    Graphics card(s)
    Intel(R) HD Graphics 520
    Sound Card
    Intel(R) HD Graphics 520 + RealTek Audio
    Monitor(s) Displays
    Dell laptop display 15"
    Screen Resolution
    1920 * 1080
    Hard Drives
    Toshiba 128GB M.2 22300 drive
    INTEL Cherryville 520 Series SSDSC2CW180A 180 GB SATA III SSD
    PSU
    Dell
    Case
    Dell
    Cooling
    Dell
    Mouse
    Logitech MX Master 3S (shared w. Sys 1) | Dell TouchPad
    Keyboard
    Dell
    Internet Speed
    AT&T LightSpeed Gigabit Duplex Ftth
I was directed in one of my forum help posts to run this script. Can anyone tell me what it does? Either I am out of the loop, or I missed what the script is supposed to do.

Thanks, Jesse
 

My Computers

System One System Two

  • OS
    Windows 11 Home 64-bit
    Manufacturer/Model
    HP Laptop -15-ef1079nr & HP All-in-One 24-df1370 Bundle PC
    CPU
    AMD Ryzen 3 & 11th Gen Intel Core i5-1135G7
    Motherboard
    HP 8706 (FP5) & HP 87F3 (ROW)
    Memory
    8 GB & 8 GB
    Graphics Card(s)
    AMD Radeon Graphics & Integrated Intel Iris X Graphics
    Sound Card
    Realtek Audio
    Monitor(s) Displays
    AMD Radeon Graphics Monitor & FHD Diagonal Touchscreen
    Screen Resolution
    1366x768 & 1920x1080
    Hard Drives
    SK Hynix BC511 HFM256GDJTNI-82A0A (SSD) & 512 GB PCIe® NVMe™ M.2 (SSD)
    Keyboard
    HP Slim Keyboard
    Mouse
    Logitech Wireless & HP Wireless
    Internet Speed
    500 Mbps
    Browser
    Microsoft Edge
    Antivirus
    NETGEAR Armor by Bitdefender (Bitdefender Total Security)
  • Operating System
    Windows 11 Home 64-bit
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP Slim Desktop - S01-pF1013w
    CPU
    Intel Celeron G5900
    Motherboard
    8768 A (SMVB)
    Memory
    8 GB
    Graphics card(s)
    Intel UHD Graphics 610
    Sound Card
    Intel(R) Display Audio
    Monitor(s) Displays
    HP 23es 23-inch Monitor
    Screen Resolution
    1920x1080
    Hard Drives
    1 TB 7200 rpm SATA HDD
    Mouse
    HP 230 Wireless Mouse
    Keyboard
    HP 230 Wireless Keyboard
    Internet Speed
    500 Mbps
    Browser
    Microsoft Edge
    Antivirus
    NETGEAR Armor by Bitdefender (Bitdefender Total Security)
I was directed in one of my forum help posts to run this script. Can anyone tell me what it does? Either I am out of the loop, or I missed what the script is supposed to do.

Thanks, Jesse
It basically just runs these commands but automated and in succession, Jesse.

/drivers/maxclean
dism /Online /Cleanup-Image /CheckHealh
sfc /scannow
dism /Online /Cleanup-Image /RestoreHealth
dism /online /Cleanup-Image /Startcomponentcleanup /resetbase
 

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.
That I don't know about - I've not actually seen that message, but I also don't remove a whole lot from a stock install to begin with.
Your approach is probably the best way!

I removed another app called web experience something or other. It apparently controls the widget stuff which I don't use. Bofore the day was out, I noticed that windows had re-installed it.

I'm beginning to think this particular minion function really isn't useful.
 

My Computer

System One

  • OS
    win 11 24H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell 790 (Mt)
    CPU
    i5-2400
    Motherboard
    Dell
    Memory
    24 GB DDR-3
    Graphics Card(s)
    Intel HD Graphics 2000 (on-board)
    Sound Card
    Intel Cougar Point PCH [B2] (On-Board)
    Monitor(s) Displays
    LG 27MN60T

Latest Support Threads

Back
Top Bottom