Errors when trying to inject offline Windows Updates into a mounted WIM

WIMerror
WIMerror

Estimated reading time: 2 minutes

If you are using WIM files for Operating System Deployments (OSD) you may be injecting Windows Updates into the WIM to keep them up to date. If you are doing this, you may run into errors when processing through the updates like this:

Errors when trying to inject offline Windows Updates into a mounted WIM 1

This is because the mounted WIM thinks that there are pending updates. To clear this, you need to edit a registry key within the mounted WIM file.

How to edit a mounted WIM files registry

To edit the registry within your WIM file, you first need to ensure that the WIM file is actually mounted. Then you need to run the following command:

reg load HKLMwimkey {mounted_location}windowssystem32configsoftware

where:

  • {mounted_location} = The location of your mounted WIM file
Errors when trying to inject offline Windows Updates into a mounted WIM 2

You should now go into regedit and under HKLM you will see a value of wimkey.

You now need to browse through the registry to:

SOFTWAREMicrosoftWindowsCurrentVersionComponent Based ServicingSessionsPending

Then, make sure that the account you are using has full access permissions to the key. To do this, right click the key and click Permissions, then change where required.

Look for the Exclusive DWord, this will probably have a value of 3, but change it to 0.

Once this is complete, you then need to go ahead and unload the reg key. Use the following command to do this:

reg unload HKLMwimkey

Now, go back to your offline update procedure and try again, you should now notice that it runs through without errors:

Errors when trying to inject offline Windows Updates into a mounted WIM 3

COMMENTS

If you have any questions or feedback on this guide, please feel free to leave us a message below and we will try to get back to you as soon as we can.

Share this content:

Click to rate this post!
[Total: 0 Average: 0]
Avatar for Andrew Armstrong

About Andrew Armstrong

Founder of TechyGeeksHome and Head Editor for over 15 years! IT expert in multiple areas for over 26 years. Sharing experience and knowledge whenever possible! Making IT Happen.

View all posts by Andrew Armstrong

Leave a Reply

Your email address will not be published. Required fields are marked *