Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Windows » How to update Microsoft Defender Antivirus into the install image of Windows (install.wim)
  • SCSI Controoler HyperV issue failed to start VM
    Failed to Power on with Error ‘A virtual machine disk support provider for the specified file was not found Virtualization
  • drivelock 1
    How to activate DriveLock License on Windows Server Windows Server
  • Windows Admin Center v2   2401 install   2306 to 2311 upgrade
    Upgrade Windows Admin Center 2306 – 2311: Install WACmg 2410 Network | Monitoring
  • screenshot 2020 03 31 at 22.22.43
    How to create, edit and delete a scheduled task via the Command Prompt Windows Server
  • How to Fix 0xc000007b Error banner
    Fix 0xc000007b Error on Windows 11 While Launching a Game Windows
  • install virtualbox on linux mint ubuntu
    How to install Windows Server 2019 on Virtualbox Windows Server
  • Watchguard Firewall 180504 100511 1
    Reset an XTM Firebox Device: Easy Guide Network | Monitoring
  • Deploy Web App from GitHub
    Deploy Code from GitHub to Azure Apps Services via the Command line AWS/Azure/OpenShift

How to update Microsoft Defender Antivirus into the install image of Windows (install.wim)

Posted on 14/09/202115/09/2023 Christian By Christian No Comments on How to update Microsoft Defender Antivirus into the install image of Windows (install.wim)
Windows Defender update

Microsoft Defender Antivirus, formerly known as Windows Defender, is an antivirus protection program that’s included with Windows 10. Unlike other antivirus programs like McAfee, Microsoft Defender is free and doesn’t require any additional installation. Therefore, in this guide, I will be showing you how to update the Windows installation image (install.wim) file with the latest security intelligence package available. Please see WDS/DHCP scenarios: How to configure DHCP Server option 60, 66, and 67 for Windows Deployment Services, Uninstall WDS: How to remove Windows Deployment Services role via the GUI and PowerShell.

After the installation of Windows 10, the built-in version of Microsoft Defender Antivirus will download and apply any recent updates automatically. But this process does not happen immediately, thereby leaving the system temporarily vulnerable to attacks during this period.

I have successfully tested this on Windows 10 Enterprise, Pro und Home-Edition and Windows Server 2016 and 2019. Here is a detailed guide on “how to install ADK, MDT, and WDS: How to deploy Windows images via Microsoft Deployment Toolkit and Windows Deployment Services“.

Install WIM File

However, The install. wim file (Windows Image File) is a compressed file that contains a set of many files and associated file system metadata and is included in any Windows installation Media under the “sources” folder (sources\install.wim).

Also, see What are the differences between Capture image, Discover image, Install and Boot images (Windows PE). How to fix Action cannot be complete because the computer is open in Wimserv.

Boot WIM File

A boot image is an image we can use to boot a bare-metal system in order to begin the process of installing Windows onto the system.

Please see the following guides: Install Wim: How to Add Packages to Windows image the DISM Tool. How to add boot and install images to WDS and configure Multicast transmission via the GUI and WDSUTIL.

How to update Microsoft Defender on Windows 10 image

To update the Microsoft Defender Antivirus for system installation image. You will need to download the Microsoft Defender kit for the 64-bit version. If you are using 32-bits version of Windows 10. You can download this.

Install.wim modification

Upon download, please extract the as shown below. For more information on the differences between ADK, MDT, Microsoft Endpoint Configuration Manager (SCCM), Intune, Autopilot, and WSUS. No bootable media found system halted: Unable to PXE boot WDS to Virtualbox,

Microsoft Defender installation
Antivirus integration Windows

Next, create a temporary location, in my case, I will name it “Windefprocess”

Windows Defender update

Next, you will have to launch PowerShell, right-click the top result, and select Run administrator.

Install.wim modification

Type the following command to open the directory with the extracted files and press Enter

cd PATH\TO\DEFENDER-UPDATE-KIT
C:\Users\Christian\Documents\defender-update-kit-x64

Next, type the command to update the Microsoft Defender Antivirus inside a Windows 10 image and press Enter:

.\DefenderUpdateWinImage.ps1 -WorkingDirectory "DEFINED_TEMP-LOCATION" -Action AddUpdate -ImagePath "PATH\TO\INSTALL.WIM" -Package "PATH\TO\DEFENDER\CAB\UPDATE"
.\DefenderUpdateWinImage.ps1 -WorkingDirectory "C:\Users\Christian\Documents\Windefprocess" -Action AddUpdate -ImagePath "C:\Users\Christian\Documents\Image\install.wim" -Package "C:\Users\Christian\Documents\defender-update-kit-x64\defender-dism-x64.cab
Screenshot-2021-10-18-at-22.28.31
Screenshot-2021-10-18-at-22.28.49
Screenshot-2021-10-18-at-22.41.38

Furthermore, As you can see below, the update has been successfully applied. Now, the PowerShell script will update the Windows 10 image with the most recent platform, engine, and signature version of Microsoft Defender Antivirus as shown below.

Here are some exciting guides: How to remove Microsoft Defender update on Windows 10 and Windows Server image, MDT accidental OS deletion: Mistakenly deleted your Operating Systems over Microsoft Deployment Toolkit, and how to fix “Error 0xc1420127: The specified image in the specified wim is already mounted for read and write access“

Screenshot-2021-10-18-at-22.45.55

I hope you found this blog post helpful. If you have any questions, please let me know in the comment session.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Pocket (Opens in new window) Pocket
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
  • Share on Threads (Opens in new window) Threads
  • Share on Nextdoor (Opens in new window) Nextdoor
Windows Tags:AntiMalware, AntiVirus, Microsoft Deployment Toolkit (MDT), Microsoft Windows, WDS, Windows 10, Windows Defender, Windows Server 2016

Post navigation

Previous Post: Automate Infrastructure Deployments in the Cloud with Ansible and Azure Pipelines
Next Post: A Brief Introduction to Linux and How to Create Disk Partition in Ubuntu Linux

Related Posts

  • Install ROOT CA Enterprise
    How to Install ROOT CA Enterprise and NPS Wifi Certificate Windows
  • Permission1
    How to create a Shortcut That enables Standard Users to run Applications as Administrator Windows
  • Feature image 1
    Configure and validate Exclusions for Microsoft Defender Antivirus scans Anti-Virus Solution
  • MBAM
    The web application “Administration Portal” cannot be enabled because one or more software dependencies are not met Windows
  • win 10 login screen
    How to Transfer User Profile to another User in Windows Windows
  • Screenshot 2022 04 02 at 23.05.24
    How to apply Windows Updates with PowerShell Windows

More Related Articles

Install ROOT CA Enterprise How to Install ROOT CA Enterprise and NPS Wifi Certificate Windows
Permission1 How to create a Shortcut That enables Standard Users to run Applications as Administrator Windows
Feature image 1 Configure and validate Exclusions for Microsoft Defender Antivirus scans Anti-Virus Solution
MBAM The web application “Administration Portal” cannot be enabled because one or more software dependencies are not met Windows
win 10 login screen How to Transfer User Profile to another User in Windows Windows
Screenshot 2022 04 02 at 23.05.24 How to apply Windows Updates with PowerShell Windows

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • SCSI Controoler HyperV issue failed to start VM
    Failed to Power on with Error ‘A virtual machine disk support provider for the specified file was not found Virtualization
  • drivelock 1
    How to activate DriveLock License on Windows Server Windows Server
  • Windows Admin Center v2   2401 install   2306 to 2311 upgrade
    Upgrade Windows Admin Center 2306 – 2311: Install WACmg 2410 Network | Monitoring
  • screenshot 2020 03 31 at 22.22.43
    How to create, edit and delete a scheduled task via the Command Prompt Windows Server
  • How to Fix 0xc000007b Error banner
    Fix 0xc000007b Error on Windows 11 While Launching a Game Windows
  • install virtualbox on linux mint ubuntu
    How to install Windows Server 2019 on Virtualbox Windows Server
  • Watchguard Firewall 180504 100511 1
    Reset an XTM Firebox Device: Easy Guide Network | Monitoring
  • Deploy Web App from GitHub
    Deploy Code from GitHub to Azure Apps Services via the Command line AWS/Azure/OpenShift

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,832 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.