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


If you are using WIM files for Operating System Deployments (OSD) you may be injecting Windows Updates in to 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:

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


  • {mounted_location} = The location of your mounted WIM file

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:


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.

Free Subscription!Subscribe to our site to receive updates via email!

Enter your email address below and click the Subscribe button to receive email notifications about new and exciting downloads available through our website at

You will also receive notifications about new technical guides, latest news and MSI installer downloads that are available through our blog here at 

We will not spam you and we will not pass on any of your details to anyone else. We tend to post new content once or twice a week.

Join 144 other subscribers

You can unsubscribe any time you like.

About A.J. Armstrong

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

View all posts by A.J. Armstrong

Leave us a message...

This site uses Akismet to reduce spam. Learn how your comment data is processed.