RackNerd Billboard Banner

How to create batch script file to Retrieve Recent Windows Update on Windows 11

Windows 11 keeps your PC secure with regular updates. But what if you want a quick way to check which updates have been installed recently—without digging through endless menus? Here’s a simple solution: a batch script file. With just a few lines of code, you can automate the process and get a list of recent Windows Updates in seconds.

Why Use a Batch Script?

  • Saves time: No need to open Windows Update and click around.
  • Portable: Use it on any Windows 11 PC.
  • Customizable: Tweak the script for your needs.

Step 1: Open Notepad

First, open Notepad or any text editor you like.

Step 2: Copy the Script

Paste the following code into your text editor:

@echo off
echo Retrieving the list of recently installed Windows Updates...
wmic qfe list brief /format:table
echo.
echo Press any key to exit.
pause >nul

What this does:

  • wmic qfe list brief /format:table lists all installed updates in a readable table.
  • The rest of the code is for clarity and user experience.

Step 3: Save as a Batch File

  1. Click File > Save As.
  2. Set Save as type to “All Files”.
  3. Name it something like Get-Recent-Updates.bat.
  4. Save it to your Desktop or wherever you want.

Step 4: Run the Script

  1. Double-click your new .bat file.
  2. A command window pops up showing your recent Windows Updates.

That’s it! You’ve just made a handy tool for your PC.


Extra Tips

  • Run as Administrator: Some systems require admin privileges to access update info. Right-click your .bat file and select “Run as administrator” if you get access errors.
  • Export to a File: To save the update list, tweak the script like this:
    @echo off wmic qfe list brief /format:table > "%userprofile%\Desktop\WindowsUpdateList.txt" echo Update list saved to your Desktop as WindowsUpdateList.txt pause
    If you’d rather skip the manual script, you can also download a ready-made update_info text file here.
  • PowerShell Alternative: Want a more detailed report? Try this PowerShell command:
    Get-HotFix | Sort-Object -Property InstalledOn -Descending
    (Save as a .ps1 file and run in PowerShell.)

Wrapping Up

A simple batch script can save you time and give you instant insight into your Windows 11 update history. Whether you’re troubleshooting, tracking patches, or just curious—this script has you covered. Bookmark this post, and you’ll never have to hunt for update info again.


Have questions or want more Windows 11 tips? Leave a comment below!

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
RackNerd Billboard Banner
© 2025 Computer Everywhere
Your Everyday Guide to the Digital World.
Terms of Service | Privacy Policy
Copy link