Can't install updates with Powershell Windows update script after kb5040442

  • Thread starter Thread starter Norbert Végh
  • Start date Start date
N

Norbert Végh

Guest
I am using the following script to update Windows images during Hashicorp Packer builds: https://www.powershellgallery.com/p...nt/hyper-v\Windows\scripts\win-updates.ps1The script stops working on Windows 11 22h2 and 23h2 OS versions after installing the kb5040442 update.The script is printing the following after the update:There are 1 more updates> Note: has a license agreement that must be accepted. Accepting the license.Element not found. (Exception from HRESULT@ 0x8002802B (TYPE_E_ELEMENTNOTFOUND))At A:\win-updates-22h2.ps1:74 char:21+

Continue reading...
 
Back
Top