[SOLVED] DISM /online error 193

Status
Not open for further replies.

cybot

Active member
Joined
Feb 19, 2016
Posts
41
this is the thread I started over on M$ answers, but was not getting anywhere: http://answers.microsoft.com/en-us/...-0bd0-47cf-812d-f1fe7d311199?tm=1455928925629


in short, I was asked by my mom to fix and update her computer in preparation for her to do taxes. I found number of issues on her system all but one of which has been fixed.

when ever I try and run 'dism /online /cleanup-image /restorehealth' on her computer, I get a error 193 from DISM


Error: 193
An initialization error occurred.
For more information, review the log file.
The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log


a look at the dism.log referenced in the error message, I found these three messages;

2016-02-17 13:22:25, Warning DISM DISM OS Provider: PID=8656 TID=6116 Failed to bind the online servicing stack - CDISMOSServiceManager::get_ServicingStackDirectory(hr:0x800700c1)
2016-02-17 13:22:25, Error DISM DISM OS Provider: PID=8656 TID=6116 Unable to retrieve servicing stack folder for DLL search path modification. - CDISMOSServiceManager::SetDllSearchPath(hr:0x800700c1)
2016-02-17 13:22:25, Warning DISM DISM OS Provider: PID=8656 TID=6116 Unable to set the DLL search path to the servicing stack folder. C:\Windows may not point to a valid Windows folder. - CDISMOSServiceManager::Final_OnConnect

I don't know if there is a registry setting that got changed somehow or what, but C:\windows is indeed a valid folder. chkdsk and sfc no longer report any errors, I was able to get windows 10 to update from 10586.17 to 10586.104. when I started on this job, windows update and the task scheduler service were not operational. there was also some disk errors and a corrupt windows file opencl.dll, all of which windows was able to fix using chkdsk and sfc. I have hit the wall in terms of my knowledge. I am not that familiar yet with DISM or it's inner workings. I tried searching 'dism error 193', but there were no helpful results. I am hoping you will be able to help me.

both Malwarebyte anti-malware home Premium and ESET Smart Security say the PC is clean.
 
Generally, the DISM tool is helpful when SFC finds but can't repair corrupt files. The DISM process provides a refreshed image. Whenever a user has trouble with the online process, I often recommend trying again using a Windows 10 DVD as a source. Besides, it can be handy to have a Windows 10 DVD around ... for startup repairs ... and as a source of system files for other repair emergencies.

Here are the instructions to create a Windows 10 DVD, and the steps for DISM to use the Windows 10 DVD as the source.
===============================

Create a bootable Windows 10 DVD


Go to the Microsoft "Get Windows 10" website:
Windows 10


1) Once on the Get Windows 10 site, scroll down to the section "Need to create a USB, DVD, or ISO?"
2) Click on the blue option button "Download tool now"
Once the download is complete, double-click MediaCreationTool.exe
3) "Getting things ready" will appear for a bit.
4) Agree to the License Terms by clicking on Accept
5) Again, "Getting a few things ready" will appear.
6) On the following screen, select "Create installation media for another PC".
7) And click Next.
8) Select your preferences: language, Windows 10 version, bit-depth (the defaults are English, Windows 10, 64-bit)
9) Select ISO file.


If the iso is created on a computer already running Windows 10, simply put a blank DVD in the optical drive, right-click the .iso file you created & select "burn disk image". Otherwise use a DVD burning capable program (Roxio, Nero, Sonic, CyberLink, etc.) to create the bootable DVD -- look for a "burn image" option. You must use that special command, because simply copying the file to a DVD doesn't make the DVD bootable, it must be written as a system image (otherwise it ends up as a normal storage DVD that happens to have an .iso file on it).



Running DISM using a Windows 10 DVD


1) Make sure you are disconnected from the Internet. No Ethernet cable. Turn off the wireless.
2) Place the Windows 10 DVD in the DVD drive - cancel or exit out of any resulting screens.
3) Note the drive letter assigned to your DVD drive (you'll see this in File Explorer)
4) Right-click the Windows Start Menu icon
5) From the menu, select Command Prompt (Admin)
6) To the question "Do you want to allow this app to make changes to your computer?", select Yes
7) Type in the following command, replacing the "D" in the Source:wim: with the drive-letter assigned to your DVD-drive (if it's different)
Dism /Online /Cleanup-Image /RestoreHealth /Source:wim:D:\sources\install.wim:1 /limitaccess
(if your DVD drive happens to be assigned the drive-letter D, you can copy and paste that line into your command prompt)


It can take quite a while - varies a bit from machine to machine.


===============================

See if that helps.

Just for curiosity's sake: are there errors in your Event Viewer logs that are worrisome? Are any programs behaving badly? And did you include a standard run of hardware diagnostics -- just to make sure no hardware issues were causing software snafus?
 
running dism with the /online parameter seems to trigger the error 193. I can't even use 'dism /online /?'.

I have a install.wim that I prepared for a an emergency, but I can't get dism to use it.

when I started, there was a number of errors with her system, the eset stuff was malfunctioning, windows update and taskscheduler weren't working, and there were disk errors, and some corrupted files. and of course there was the error 193 when I ran dism I have fixed all the errors but the one in dism. because there was disk minor corruption, I want to have windows make sure the component store is in working order, but I cant get dism to run an online repair. I can't even find any information as to what error 193 is or means. I suspect there is a problem with one of the files dism uses, maybe one of the ones in 'c:\windows\system32\dism\'. I just don't know which one.
 
in my experience, even when using the media creation tool, a install.wim is not present in the OS setup files, only a install.esd. it may exist on retail discs however. I created my install.wim by using a esd to wim converter.
 
Actually, if you create the DVD from a clean, working Windows computer, DISM from the DVD should be just fine. Give it a go.
 
I think I might not be understanding what you are saying. because I thought we were talking about doing an online repair using dism. Even If I try and specify a source when I try to use dism, I get a error 193. using other dism flags such as such as /mount-wim or /image does not cause error 193. only the use of the /online flag cause the error. should I try transplanting the windows\system32\dism from my computer to hers? or should try downloading the portion of the aik (or what ever it's called) that contains a separate copy of dism?
 
I just found this m$ page, and the information for error 193 matches up with the error message I was seeing when I tried to use dism through powershell.

System Error Codes (0-499) (Windows

ERROR_BAD_EXE_FORMAT193 (0xC1)%1 is not a valid Win32 application.
 
Hi again

I'm not sure that the System Error Code 193 is the same as the error code 193 that you are seeing when trying the online method of DISM. When using the online method, your system files are checked against those stored on the Microsoft servers. When using the method that has DISM look for the files on the DVD, no Internet connection is used.

I know it looks confusing, since /online shows in both versions -- the difference happens with the /Source section. That is what points the process to use the files on the DVD as the reference source. The advantage of using the DVD is that trouble or irregularities from problematic Internet connections don't have any effect.

Can't hurt to try again, using the DVD. Pay special attention to creating a bootable DVD, not just a storage DVD that happens to have an .iso file on it.

I know that you helped fix some file-system damage using CheckDisk. But did you also run hard drive diagnostics from the hard drive manufacturer's site? (Since you mentioned seeing disk errors). If you haven't run hard drive specific diagnostics yet, it's a nice confidence builder.
 
One more lttle note: if you still get the 193 error trying DISM with a DVD as the source, there are some other steps we can try.
 
Hi again

I'm not sure that the System Error Code 193 is the same as the error code 193 that you are seeing when trying the online method of DISM. When using the online method, your system files are checked against those stored on the Microsoft servers. When using the method that has DISM look for the files on the DVD, no Internet connection is used.

I know it looks confusing, since /online shows in both versions -- the difference happens with the /Source section. That is what points the process to use the files on the DVD as the reference source. The advantage of using the DVD is that trouble or irregularities from problematic Internet connections don't have any effect.

Can't hurt to try again, using the DVD. Pay special attention to creating a bootable DVD, not just a storage DVD that happens to have an .iso file on it.

I know that you helped fix some file-system damage using CheckDisk. But did you also run hard drive diagnostics from the hard drive manufacturer's site? (Since you mentioned seeing disk errors). If you haven't run hard drive specific diagnostics yet, it's a nice confidence builder.

I think the issue lies with one of the dism providers. I just don't know which one. I don't even know what does what where dism is concerned. I downloaded the windows 10 adk to my pc and will try installing the portion that has it's own copy of dism tomorrow, and see what happens. I know the dism with the adk will need to be run from a different location, but that's good imo, because if it works, it means I was right.

and as for my mention of the error 193 and the ms link, when I tried to run the dism repair image commands through powershell, it gave the exact same error message that the ms link said error 193 was ')%1 is not a valid Win32 application'.

I am unable to specify a source for dism, because the /online flag is not working

I tried this command, as well as a couple variations, all which ended in error 193

C:\windows\system32\>dism /online /cleanup-image /analyzecomponentstore /source:wim:c:\temp2\install.wim:1 /limitaccess
 
The 193 error is truly puzzling. When it first appeared, was it followed by the message "An initialization error occurred"?

I have to wonder if the trouble is with perhaps a faulty local copy of DISM.exe, or might it be a permissions/access issue when PowerShell attempts to access it? There is also a little oddity I came across - but it is a reference mentioned in the Windows 8 documentation for DISM - that DISM
cannot be used with Windows images that are more recent than the installed version of the Windows Assessment and Deployment Kit
. . .

The strangest part is that if there was a problem with the DISM.exe on your mom's laptop, then those successful runs of SFC should have taken care of that. Generally we run DISM to help when SFC finds but can't fix corruptions (as a single-computer repair, that is).

Very curious. If you want to try things with the ADK version, seems like it might have a chance - since the version of DISM.exe doesn't have any problem at all with older images, only with images newer than DISM.exe itself.

If you don't have any luck with the ADK idea, there is a configurable repair tool from tweaking.com that has been updated very recently (February 16, 2016 .. just a few days ago). There are portions of the tool that are free, and some that are available for a fee. The tools we'd try are in a folder called "Windows Repair" - and they are part of the free tools. It's a bit risky - since you're not really having many issues now - but it might have a chance to succeed since it sweeps in such broad brush strokes ... it can reset permissions to defaults over a wide variety of areas, for example. And permissions seem to be easily tangled in Windows 10. I was hoping for better (since such issues also plagued Windows 8 at times also). Let me know if you want to try that tool, and I can paste in or attach some instructions and screenshots - some of the tech team in our Windows Update forum make use of the tool from time-to-time.

.... I'll stay tuned.
 
dism, when run from the cmd prompt gives the initialization error
dism, when run from powershell using the repairimage command gives a '%1 is not a valid Win32 application.' error.

I could try transferring dism from my computer to hers. should I also try transferring the system32\dism directory too?

my computer: windows 10 Pro 10586.104
my moms computer (the patient pc): windows 10 pro 10586.17

I have been delaying updates to her pc until dism is up and running.
 
well, now I am really stumped. from an the directory that the adk copy of dism ws in I typed the following: C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\DISM>"c:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\DISM\dism.exe" /online /cleanup-image /restorehealth /source:wim:c:\temp2\install.wim:1 /limitaccess

and I still got error 193

I renamed the system32\dism directory and copied the dism directory from the adk to system32. I also made a copy of dismhost.exe and put it into the new dism directory. this time a different error occurred.


Error: 0x80029c4a
An error occurred while attempting to start the servicing process for the image located at C:\.
For more information, review the log file.
The DISM log file can be found at C:\windows\Logs\DISM\dism.log


I don't know if this is because of what I did, or if it is related to the problem I have been having
 
I undid what I had done and even tried copying the dism files from my pc to hers. still error 193. I guess that rules out it being the providers.

at this point it looks like I will be forced to do what everyone else who has encountered this error has done, reinstall windows. fortunately, I have the 10586 media creation tool the I downloaded before it got yanked by m$

I am done working on her computer for tonight, but will continue to monitor this thread for suggestions. I just hope a repair install fixes the issue.
 
If I catch anything relevant for that error, I'll send it along. So far - the dozen or so threads that I've seen with the 193 error have also ending in a re-installation of Windows. As a last ditch effort (since you are already thinking of re-installing) you could try out the Windows Repair tool over at tweaking.com ...

Might be worth a try - as a test of a tool, if nothing less.
 

Attachments

I actually used that tool to get windows update back up and running on her machine. it had the added bonus of also fixing the task scheduler service which was also malfunctioning (see my m$ answers post for details). I only used the repair windows update option that time, but I have run the tool since telling it to repair windows files. still no luck though. replacing the dism files wasn't enough. so it means that the issue is probably something else. unfortunately I could not find any information about the error based on the errors given in dism.log.
 
just looked at the attachment on you last post, those were all the repairs I ran when I ran the utility the second time.
 
So far, I haven't been able to find a quicker solution than the re-install. If I can get good info on at least the reason the error occurs, I'll send that along too. Slow going, since the DISM tool seems to have been mainly intended for Windows roll outs in corporate environments - so much of the information for personal use is hard to find. Maybe I'll get lucky, and this tech tortoise will reach the finish line...
 
Hi again

I finally found a user who didn't have to completely reinstall Windows 10 to get past the DISM 193 error. But they did reinstall Windows "in-place". I've done in-place reinstallations of many Windows versions in the past, but wasn't aware that such options still existed for Windows 10. [Windows 10 does have the "Refresh" option, which saves personal files, but doesn't keep currently installed programs].

Turns out there are four ways to perform an in-place Windows 10 re-installation. And luckily for me, I don't have to type out all the instructions because the folks over on WindowsTenForums were nice enough to have already made up a how-to, complete with screenshots and all.

Here's the link to the guide:
Repair Install Windows 10 with an In-place Upgrade - Windows 10 Forums

If you've already performed a clean install, sorry that I posted this too late. If you've done the clean install, though - that's a pretty surefire way to go. I would imagine that the in-place re-installs don't always work for every single machine. But they sound like a time-saving method for the machines for which it's successful!
 
yeah, I have actually done a repair (inplace reinstall) of windows 10 several time before on my computer after a windows update (or something) corrupted the windows store (not the component store, the store, store). I have been doing such repair installs since win 3.1.

anyway, 3 times now I have run into a error message box when I run windows setup on her machine, the title of the box says 'something happened' and the error message says 'windows install failed'. a look at the setup setupact.log file I found an error message.

2016-02-23 15:14:39, Error CONX 0x800700c1 Failed to open dism driver store

there are also other related error messages but they all have the same 0x800700c1 error code.

I could only find information on this error code as it pertains to windows update. windows update it self on the pc appears to be working and it has updated the build from 10586.17 to 10586.104. so I don't think the issue has anything to do with windows update.
 
Status
Not open for further replies.

Has Sysnative Forums helped you? Please consider donating to help us support the site!

Back
Top