Properly formatted DISM command incorrectly parsed

brokensoftware

Member
Member
Messages
108
When I execute a DISM command in an administrator-level command window, the command line is being incorrectly parsed by either DISM, an API it calls, or by CBS, or an API CBS calls. This causes an "invalid path"-type error after the argument to "/Source:" argument is incorrectly parsed.

From this post: http://www.eightforums.com/tutorial...uption-windows-8-a-post523279.html#post523279

here are some extracts of what I typed:

Code:
dism  /Online /Cleanup-Image /RestoreHealth [COLOR=#ff0000]/Source:esd:G:\sources\install.esd:1 /limitaccess[/COLOR]

what DISM said I typed:

Code:
...DISM.EXE: Executing command line: [COLOR=#ff0000]Dism  /Online /Cleanup-Image /RestoreHealth /Source:esd:G:\sources\install.esd:1 /limitaccess[/COLOR]

and what CBS says it got as the path:

Code:
...CBS    Exec: Addsource called, Session: 30466707_885613462, Client: DISM Package Manager Provider, from GPO: No, Path: [COLOR=#ff0000]C:\WINDOWS\system32\esd:G:\sources\install.esd:1[/COLOR]

Note that the path CBS has is simply an incorrectly parsed "/Source:" argument with my current directory tacked on the front.

What went wrong here? How can ANYONE use that "/Source:" argument to DISM and have it succeed (since I'm doing nothing interesting at all other than invoking a CMD command).

And how to fix this?
 

My Computer

System One

  • OS
    Windows 8.1, 10, various Linux
    Computer type
    PC/Desktop
    System Manufacturer/Model
    homebuilt
dism /Online /Cleanup-Image /RestoreHealth /Source:G:\sources\install.esd:1 /limitaccess

try the above - removing the esd: - although I believe it to will fail
as the reference to /source:wim:
is in regards to server location
and I still have not found reference to /source:esd:
 

My Computer

System One

  • OS
    Windows 3.1 > Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Dell XPS 8700
    CPU
    I7
    Memory
    24 GB
dism /Online /Cleanup-Image /RestoreHealth /Source:G:\sources\install.esd:1 /limitaccess

try the above - removing the esd: - although I believe it to will fail

Though I didn't mention it in this post, I did indeed try some variations, all of which failed identically.

What I was planning to do next was to completely ignore the hints to DISM about the type of file (the "esd:" and ":1" substrings) and make sure I actually was in the directory with the "sources" subdirectory - that way any tacking on of my "current" directory would be correct AND there wouldn't be any strangeness with "esd:" getting injected into the pathname. Something like this (where the ISO file is mounted as "g:"):

Code:
g:
dism  /Online /Cleanup-Image /RestoreHealth /Source:sources\install.esd /limitaccess

I do not remember where I read it - probably at least a couple different locations maybe even including something on eightforums - but the gist of what I read was that "install.esd" is equal to OR maybe even the replacement for "install.wim" and could be used with the DISM "/Source:" argument.

Certainly using the "esd" strings caused no complaint at all from DISM so I assume it accepted it just fine, though maybe it simply passed along the string to some other library/application that totally choked on it. That is the gist of the questions behind this thread - how is this error happening to ME when many others have apparently used this exact same argument format and it's worked fine?

Anyway, I'll probably be trying that out "soon" and will post a followup whether success or failure.

====

Post-post edit:

I just tried this with the displayed results - DISM accepted an ".esd" file as if it were a ".wim" file:

Code:
G:\sources>[COLOR=#ff0000]dism /Get-WimInfo /WimFile:install.esd /index:1[/COLOR]

Deployment Image Servicing and Management tool
Version: 6.3.9600.17483

Details for image : install.esd

Index : 1
Name : Windows 8.1 Pro
Description : Windows 8.1 Pro
Size : 13,185,962,705 bytes
WIM Bootable : No
Architecture : x64
Hal : acpiapic
Version : 6.3.9600
ServicePack Build : 17415
ServicePack Level : 0
Edition : Professional
Installation : Client
ProductType : WinNT
ProductSuite : Terminal Server
System Root : WINDOWS
Directories : 18805
Files : 104794
Created : 11/21/2014 - 1:07:26 PM
Modified : 8/28/2015 - 8:34:32 PM
Languages :
        en-US (Default)

The operation completed successfully.
 
Last edited:

My Computer

System One

  • OS
    Windows 8.1, 10, various Linux
    Computer type
    PC/Desktop
    System Manufacturer/Model
    homebuilt

My Computer

System One

  • OS
    Windows 3.1 > Windows 10
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Dell XPS 8700
    CPU
    I7
    Memory
    24 GB
Back
Top