Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

DISM Improvements in Windows 8


  • Please log in to reply
98 replies to this topic

#76
Tomorrow

Tomorrow

    Advanced Member

  • Member
  • PipPipPip
  • 375 posts
  • Joined 20-December 07
  • OS:Windows 7 x64
  • Country: Country Flag
Is it just me or does 6.2.9200 DISM lack the "get-packages" command?
The reson i discovered this is that i used a program that relied upon this command on win7 where i had replaced default DISm with the one from win8.



How to remove advertisement from MSFN

#77
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 6,092 posts
  • Joined 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

no, it still works:

DISM /Online /English /Get-Packages /Format:Table

Posted Image

#78
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 6,092 posts
  • Joined 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

I notice it does not mention /StartComponentCleanup, does this mean it can work on Windows 7?


the link now has the clean-up option listed, but doesn't really explain it.


Everyone should also check the /CheckHealth, /ScanHealth and /RestoreHealth option. They replace the ugly CheckSur update (http://support.microsoft.com/kb/947821). When DISM detects broken files (/RestoreHealth) , the files are downloaded from WindowsUpdate

Edited by MagicAndre1981, 23 May 2013 - 09:16 AM.

Posted Image

#79
ricktendo

ricktendo

    Group: Banned Members

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,309 posts
  • Joined 06-June 06
  • OS:Windows 7 x64
  • Country: Country Flag

Nice improvements in Windows 8.1 Dism utility:

Posted Image

"/ResetBase" Arguments as its name states, it wil completely remove the superseded components and make the new ones as base for future updates
thus the new base updates will become part of the system and can not be uninstalled (unless new updates supersede them).


Edited by ricktendo, 02 July 2013 - 11:24 AM.


#80
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 6,092 posts
  • Joined 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

thanks, this looks like a nice improvement :)
Posted Image

#81
ricktendo

ricktendo

    Group: Banned Members

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,309 posts
  • Joined 06-June 06
  • OS:Windows 7 x64
  • Country: Country Flag

Similarly DISM can now handle .ESD images.

Posted Image


Edited by ricktendo, 02 July 2013 - 11:23 AM.


#82
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 6,092 posts
  • Joined 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

From the picture I can see that it can export into a ESD. Can it also mount a ESD?

//Edit, Mounting an ESD doesn't work (Error 87).

Edited by MagicAndre1981, 29 June 2013 - 12:51 PM.

Posted Image

#83
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 6,092 posts
  • Joined 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

The Update KB2821895 (servicing stack update) offers a new way to save space. The /startcomponentcleanup now converts all files in WinSxS which are not used into diffs (like the diffs which are inside the MSU files). This reduces the WinSxS size a lot.

Before:

Posted Image

After running /startcomponentcleanup with the Update installed

Posted Image

So around 1.7GB of saved space.

Here the example of the smaller files inside WinSxS:

Posted Image

So this updates saves space, but you'll notice a bit of CPU usage of the TiWorker.exe.
Posted Image

#84
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 6,092 posts
  • Joined 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

ok, MS added some pages about the WinSxS/DISM Improvements for 8.1:

The /ResetBase kill all updates before this version. This makes your current Update the base for all later updates. But if the Update is buggy you're in trouble:

Using the /ResetBase switch with the /StartComponentCleanup parameter of DISM.exe on a running version of Windows 8.1 Preview removes all superseded versions of every component in the component store.

From an elevated command prompt, type the following:

Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase

Warning
All existing service packs and updates cannot be uninstalled after this command is completed. This will not block the uninstallation of future service packs or updates.


http://technet.micro...y/dn251565.aspx


This also works for WIMs/Offline:

http://technet.micro...y/dn251567.aspx


And you can a new DISM command to analyze the WinSxS folder:

C:\>dism /online /cleanup-image /analyzecomponentstore 

Deployment Image Servicing and Management tool 

Version: 6.3.XXXX.0 

Image Version: 6.3.XXXX.0 

[==========================100.0%==========================] 

Component Store (WinSxS) information: 

Windows Explorer Reported Size of Component Store : 4.98 GB 

Actual Size of Component Store : 4.88 GB     

Shared with Windows : 4.38 GB     

Backups and Disabled Features : 506.90 MB     

Cache and Temporary Data : 279.52 KB 

Date of Last Cleanup : 2013-06-10 23:32:22 

Number of Reclaimable Packages : 0 

Component Store Cleanup Recommended : No 

The operation completed successfully.

http://technet.micro...y/dn251566.aspx
Posted Image

#85
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,907 posts
  • Joined 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Donator

I can only think of certain circumstances where /ResetBase would be applicable, maybe only on embedded systems. Experience has tought me that locking down an image is a bad idea because updates DO break.
MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
msfn2_zpsc37c7153.jpg

#86
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,889 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
Has MS broke Dism in Win 8.1? Most likely intentional
I am running commands from Windows 7 and here is what I get

(ADK) for Windows® 8 folder
DISM.exe /Mount-Wim /?
Deployment Image Servicing and Management tool
Version: 6.2.9200.16384

/Mount-Wim /WimFile:<path_to_WIM_file>
{/Index:<image_index> | /Name:<image_name>}
/MountDir:<target_mount_directory> [/readonly]
====================================================================
Windows 8.1 Preview from sources folder
Deployment Image Servicing and Management tool
Version: 6.3.9431.0
DISM.exe /Mount-Wim /?
No help topic could be found for the mount-wim option.

Trying to use it I get
Error: 126
An error occurred. DISM could not be initialized in the local folder.

Edited by maxXPsoft, 02 July 2013 - 10:13 AM.

Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1

#87
ricktendo

ricktendo

    Group: Banned Members

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,309 posts
  • Joined 06-June 06
  • OS:Windows 7 x64
  • Country: Country Flag
Yea I was also having problems using win8 dism with 8.1, I had to install the 8.1 adk preview to get it to work

#88
piglovesrat15

piglovesrat15

    Newbie

  • Member
  • 30 posts
  • Joined 21-December 10
  • OS:none specified
  • Country: Country Flag

Strange error messages. It complains about not enough space on the disk, although there is PLENTY of space left (more than 200 gb free on destination drive, and the source drive is less than 20 gb).

ImageX works without a hitch and completes successfully without any errors.

I'll guess I'll keep using ImageX until they fix this buggy DISM thing.

Regards.


Did you have the /Compress: switch? in my testing, with /Compress: switch, it failed with not enough storage error. I remove the /Compress: switch and it captured the Windows 8 and 7 fine.

#89
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,889 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Yea I was also having problems using win8 dism with 8.1, I had to install the 8.1 adk preview to get it to work

Done same installing the ADK 8.1 but there are things no longer working like
/Remove-ProvisionedAppxPackage /PackageName:
I see it worked on 1 or 2 but not the others
EDIT:
/Remove-ProvisionedAppxPackage /PackageName:Microsoft.BingSports_3.0.0.693_x64__8wekyb3d8bbwe
The operation completed successfully.
/Remove-ProvisionedAppxPackage /PackageName:Microsoft.WindowsSoundRecorder_2013.616.756.1940_neutral_~_8wekyb
The operation completed successfully.

I added some Updates and they aren't showing after I get a /Get-Packages /Format:Table list, still messing with that though

Edited by maxXPsoft, 08 July 2013 - 01:43 AM.

Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1

#90
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 6,092 posts
  • Joined 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

dism /online /cleanup-image /analyzecomponentstore is nice:

It shows that 2 update can be removed and cleanup should be run.

Posted Image


after the cleanup all is fine and 230MB are saved:


Posted Image
Posted Image

#91
MAVERICKS CHOICE

MAVERICKS CHOICE

    The Guy from Aus

  • Member
  • PipPipPipPipPipPipPip
  • 1,768 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
Any saving is a good one! Pity it doesn't work on earlier versions.

#92
MAVERICKS CHOICE

MAVERICKS CHOICE

    The Guy from Aus

  • Member
  • PipPipPipPipPipPipPip
  • 1,768 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Is it possible to use "compress:maximum" option in Dism in every operation?

I know it can be used when exporting an image like this:

 

Dism /Export-Image /SourceImageFile:c:\win8\entx64\install.wim /SourceIndex:1 /DestinationImageFile:c:\win8\sources\install.wim /DestinationName:"Windows 8 Pro" /compress:maximum



#93
click-click

click-click

    Member

  • Member
  • PipPip
  • 107 posts
  • Joined 08-October 09

does anyone know if the win 8.1 install.wim can be serviced using the dism from my win 8 system?

I can mount and export, but the following does not work.

 

Edit: I missed rick's comment above. Looks like this applies in my case too, so I am using the 8.1 DISM and that is working so far.

C:\>Dism /Image:R:\Offline /Get-TargetEditions

Deployment Image Servicing and Management tool
Version: 6.2.9200.16384


Error: 0xc0000135

An error occurred while attempting to start the servicing process for the image
located at R:\Offline.
For more information, review the log file.

The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

C:\>
2013-09-11 15:10:42, Error                 DISM   DISM Manager: PID=2040 TID=896 Failed to create Dism Image Session in host. - CDISMManager::LoadRemoteImageSession(hr:0xc0000135)
2013-09-11 15:10:42, Error                 DISM   DISM Manager: PID=2040 TID=896 Failed to load the image session from the temporary location: C:\Users\xxxxxxxx\AppData\Local\Temp\030372A8-9049-4A6F-BBC2-04A70E11B909 - CDISMManager::CreateImageSession(hr:0xc0000135)
2013-09-11 15:10:42, Error                 DISM   DISM.EXE: Could not load the image session. HRESULT=C0000135
2013-09-11 15:10:42, Error                 DISM   DISM.EXE: Unable to start the servicing process for the image at 'R:\Offline'. HRESULT=C0000135

Edited by click-click, 11 September 2013 - 07:54 AM.


#94
MrJinje

MrJinje

    Toolâ„¢ Developer

  • Developer
  • 1,051 posts
  • Joined 14-October 09
  • OS:Server 2012R2
  • Country: Country Flag

In 8.1 (powershell 4.0) there will be some new DISM cmdlets available.

 

DISM

The Deployment Image Servicing and Management tool in Windows has always been an odd PowerShell cmdlet wanna-be, with its similar but frustratingly different command syntax. Wrapping that functionality, however, are new cmdlets, and they couldn't come quickly enough.

Add-WindowsImage
Expand-WindowsImage
Export-WindowsImage
Get-WindowsImageContent
New-WindowsImage
Remove-WindowsImage
Split-WindowsImage
Set-AppXProvisionedDataFile

http://withinwindows...and-new-cmdlets


Edited by MrJinje, 11 September 2013 - 07:27 AM.


#95
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,907 posts
  • Joined 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Donator

 

does anyone know if the win 8.1 install.wim can be serviced using the dism from my win 8 system?

I can mount and export, but the following does not work.

 

Nope! I ran into this too! Even with Win7's DISM, I can only mount and unmount, but need to use Win 8.1 DISM to do any servicing such as adding drivers. Unfortunately, I don't think the RTM ADK isn't out yet but you might be able to get it if you have TechNet since it was released to those subs.


MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
msfn2_zpsc37c7153.jpg

#96
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 6,092 posts
  • Joined 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

yeah, I also run into this. You need the 8.1 DISM.

 

http://www.msfn.org/...-the-huge-isos/


Posted Image

#97
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,907 posts
  • Joined 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Donator

There appears to be some versions of DISM on Update 1 systems that do not have the /Capture-Image option.

 

DISM on Windows 8.1 Enterprise (English) does have /Capture-Image.

DISM v6.3.9600.17031 on Windows 8.1 Enterprise Update 1 (Chinese) does not have /Capture-Image.

DISM v6.3.9600.17031 on Windows 8.1 Enterprise Update 1 (English) does not have /Capture-Image but does have something called /Capture-CustomImage.

 

/Capture-CustomImage
- Captures customizations into a delta WIM file on a WIMBoot system. Captured directories include all subfolders and data.

 

I have seen some threads recently of people now having a problem where /Capture-Image is not a valid switch in DISM since the update. You can find the screenshots here:

http://social.techne...=w8itproinstall

 

But I'm wondering what you might know about the new option of /CaptureCustomImage.


MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
msfn2_zpsc37c7153.jpg

#98
MagicAndre1981

MagicAndre1981

    after Windows 7 GA still Vista lover :)

  • Patrons
  • 6,092 posts
  • Joined 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Donator

I haven't tried this command yet. So I have no idea why it doesn't work.


Posted Image

#99
aphelion

aphelion

    Newbie

  • Member
  • 45 posts
  • Joined 19-January 14
  • OS:Windows 8.1 x64
  • Country: Country Flag

These were my results. Basically the test run said "Recommended, go ahead" and the actual one said "failed, destroyed, scavenged, corrupt"

Test run analysis:

C:\Windows\system32>dism /online /cleanup-image /analyzecomponentstore

Deployment Image Servicing and Management tool
Version: 6.3.9600.17031

Image Version: 6.3.9600.17031

[===========================99.3%========================= ]

Component Store (WinSxS) information:

Windows Explorer Reported Size of Component Store : 7.01 GB

Actual Size of Component Store : 6.89 GB

    Shared with Windows : 4.71 GB
    Backups and Disabled Features : 1.13 GB
    Cache and Temporary Data : 1.03 GB

Date of Last Cleanup : 2014-04-04 12:38:50

Number of Reclaimable Packages : 24
Component Store Cleanup Recommended : Yes

The operation completed successfully.

Seems pretty clear. Let's go ahead (with the command MSDN):
 

C:\Windows\system32>Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase

Deployment Image Servicing and Management tool
Version: 6.3.9600.17031

Image Version: 6.3.9600.17031

[==========================100.0%==========================]

Error: 14098
The component store has been corrupted.

 Tail end of CBS.log, minus first 30 chars/line or so:

00000339@2014/5/8:21:09:11.701 Beginning NT transaction commit...
0000033a@2014/5/8:21:09:11.701 CSI perf trace:

0000033b Regenerating Component for: [ml:280{140},l:190{95}]"wow64_microsoft-windows-ie-htmlrendering_31bf3856ad364e35_11.0.9600.16438_none_214cf27d398bd4c6"
0000033c Regenerating payload files from delta files on component: [ml:280{140},l:190{95}]"wow64_microsoft-windows-ie-htmlrendering_31bf3856ad364e35_11.0.9600.16438_none_214cf27d398bd4c6"
0000033d (F) Baseline file missingon generating delta for: [l:20{10}]"mshtml.tlb"[gle=0x80004005]
0000033e (F) STATUS_SXS_COMPONENT_STORE_CORRUPT #489563# from CCSDirectTransaction::OperateEnding at index 0 of 1 operations, disposition 0[gle=0xd015001a]
0000033f (F) HRESULT_FROM_WIN32(14098) #489495# from Windows::COM::CComponentStore::InternalTransact(...)[gle=0x80073712]
00000340 (F) HRESULT_FROM_WIN32(14098) #489493# from Windows::ServicingAPI::CCSITransaction::ICSITransaction_Commit(Flags = 22 (0x00000016), pSink = NULL, disp = 0, coldpatching = FALSE)[gle=0x80073712]
00000341 (F) HRESULT_FROM_WIN32(14098) #489492# 29505237 us from Windows::ServicingAPI::CCSITransaction_ICSITransaction::Commit(flags = 0x00000016, pSink = NULL, disp = 0)
Scavenge: Failed to commit scavenging of CSI store. [HRESULT = 0x80073712 - ERROR_SXS_COMPONENT_STORE_CORRUPT]
00000342@2014/5/8:21:09:11.722 CSI Transaction @0x2e9aa6ac10 destroyed
Warning: Failed to scavenge CSI store. [HRESULT = 0x80073712 - ERROR_SXS_COMPONENT_STORE_CORRUPT]
Failed maintenance scavenge [HRESULT = 0x80073712 - ERROR_SXS_COMPONENT_STORE_CORRUPT]
Maint: end scavenge, scavenge time so far: 28 seconds
Maint: TransientManifestCache disabled in config.
Maint: incomplete, interruptions: 1, (this pass: time: 162 seconds, used space change: 365084 KB, hr: 0x80073712, source: Scavenge)
Reboot mark cleared
Winlogon: Deregistering for CreateSession notifications
Winlogon: Stopping notify server
Winlogon: Unloading SysNotify DLL
Maint: processing complete.  Session: 30370561_1639281577. [HRESULT = 0x80073712 - ERROR_SXS_COMPONENT_STORE_CORRUPT]
Session: 30370561_1639281577 failed to perform Synchronous Cleanup operation [HRESULT = 0x80073712 - ERROR_SXS_COMPONENT_STORE_CORRUPT]
Received notification that the operation is complete.
Session: 30370561_1639281577 finalized. Reboot required: no [HRESULT = 0x80073712 - ERROR_SXS_COMPONENT_STORE_CORRUPT]
Failed to FinalizeEx using worker session [HRESULT = 0x80073712]

So the scavenge on the destroyed operation left the component store corrupt, and no reboot is needed. Got it.
 
 
Edit: code block formatting


Edited by aphelion, 08 May 2014 - 03:50 PM.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users