MSFN Forum: DISM Improvements in Windows 8 - MSFN Forum

Jump to content


  • 4 Pages +
  • « First
  • 2
  • 3
  • 4
  • You cannot start a new topic
  • You cannot reply to this topic

DISM Improvements in Windows 8

#61 User is offline   Leolo 

  • Newbie
  • Group: Members
  • Posts: 25
  • Joined: 26-July 06

Posted 02 October 2012 - 05:01 AM

Hey, turns out it's not a bug!

It's just bad default behavior by DISM. It will use x:\windows\temp as the scratch directory and under WinPE there's only 32 megs of space. No wonder it ran out of space so quickly!

I just had to add this parameter to the end of the command line and the problem was solved:

/ScratchDir:E:\


Yay!

PS: ImageX does have a saner default behavior under WinPE. It places its temporary files intelligently so it doesn't have this problem.

This post has been edited by Leolo: 02 October 2012 - 05:08 AM



#62 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • Group: Patrons
  • Posts: 4,972
  • Joined: 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Posted 02 October 2012 - 11:34 PM

ok, thanks for the feedback :)

#63 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • Group: Patrons
  • Posts: 4,972
  • Joined: 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Posted 21 October 2012 - 07:42 AM

Windows 8 has a new feature that I've requested over years! You can now detect and remove replaced updates so that the WinSxS folder no longer grows so much!

To do this, run this command from comamnd prompt with admin rights:

dism.exe /online /cleanup-image /startcomponentcleanup



it scans all all updates and checks if they are no longer needed and if this is the case it tries to uninstall them. You can see this in the CBS.log:

Quote

2012-10-21 14:40:35, Info CBS Deep-Clean: Got [5] packages from the store that can be uninstalled
2012-10-21 14:40:35, Info CBS Deep-Clean: Skipping package [Package_for_KB2739987~31bf3856ad364e35~x86~~6.2.1.1] since it is marked permanent

2012-10-21 14:40:35, Info CBS Deep-Clean: Skipping package [Package_for_KB2740443~31bf3856ad364e35~x86~~6.2.1.1] since it is marked permanent

2012-10-21 14:40:35, Info CBS Deep-Clean: Skipping package [Package_for_KB2740446~31bf3856ad364e35~x86~~6.2.1.1] since it is marked permanent

2012-10-21 14:40:35, Info CBS Deep-Clean: Skipping package [Package_for_KB2740448~31bf3856ad364e35~x86~~6.2.1.1] since it is marked permanent

2012-10-21 14:40:35, Info CBS Deep-Clean: Trying to uninstall package [Package_for_KB2755399~31bf3856ad364e35~x86~~6.2.2.0]

2012-10-21 14:40:35, Info CBS Exec: Uninstall package: Package_for_KB2755399~31bf3856ad364e35~x86~~6.2.2.0
2012-10-21 14:40:35, Info CBS Exec: Uninstall package: Package_for_KB2755399_RTM~31bf3856ad364e35~x86~~6.2.2.0
2012-10-21 14:40:35, Info CBS Exec: Uninstall package: Package_1_for_KB2755399~31bf3856ad364e35~x86~~6.2.2.0
2012-10-21 14:40:35, Info CBS Exec: Unstage package: Package_1_for_KB2755399~31bf3856ad364e35~x86~~6.2.2.0, Update: 2755399-1_neutral_LDR
2012-10-21 14:40:35, Info CBS Exec: Unstaging Package: Package_1_for_KB2755399~31bf3856ad364e35~x86~~6.2.2.0, Update: 2755399-1_neutral_LDR, UnstageDeployment/UnpinDeployment: x86_339b82ce9a8adb551b2a0619dec51cdd_31bf3856ad364e35_6.2.9200.20523_none_40d61ce9c0963925
2012-10-21 14:40:35, Info CBS Exec: Uninstall package: Package_1_for_KB2755399~31bf3856ad364e35~x86~~6.2.2.0, Update: 2755399-2_neutral_GDR
2012-10-21 14:40:35, Info CBS Exec: Unprojecting Package: Package_1_for_KB2755399~31bf3856ad364e35~x86~~6.2.2.0, Update: 2755399-2_neutral_GDR, UninstallDeployment: x86_1995aa86a2baf648aca107ca0ebe14b1_31bf3856ad364e35_6.2.9200.16421_none_96e08146a34fd303
2012-10-21 14:40:35, Info CBS Appl: Selfupdate, Component: x86_adobe-flash-for-windows_31bf3856ad364e35_0.0.0.0_none_4f79d9b3b1b9cfff (6.2.9200.16426), elevation:2, lower version revision holder: 6.2.9200.16384
2012-10-21 14:40:35, Info CBS Appl: Selfupdate, Component: x86_adobe-flash-for-windows_31bf3856ad364e35_0.0.0.0_none_4f79d9b3b1b9cfff (6.2.9200.20527), elevation:2, lower version revision holder: 6.2.9200.16426
2012-10-21 14:40:35, Info CBS Exec: Unpinning Package: Package_1_for_KB2755399~31bf3856ad364e35~x86~~6.2.2.0, Update: 2755399-2_neutral_GDR, UnpinDeployment:
x86_1995aa86a2baf648aca107ca0ebe14b1_31bf3856ad364e35_6.2.9200.16421_none_96e08146a34fd303
2012-10-21 14:40:35, Info CBS Exec: Reboot required for Package: Package_1_for_KB2755399~31bf3856ad364e35~x86~~6.2.2.0 while working with Update: 2755399-2_neutral_GDR
2012-10-21 14:40:35, Info CBS Plan: Start to process component watchlist
2012-10-21 14:40:35, Info CBS Exec: The Package or one of its Updates required a reboot so transaction commit was skipped, Package's changes need to be pended.


so in my test VM, the Update KB2755399-v2 is removed because I have the update KB2758994 installed which includes a newer Adobe flash version! But, it has a limitation. You can see that some updates, which are marked as permanent, can't be removed and will be skipped.


There is also a way from the GUI, which reduces the WinSxS size even more! Start disk cleanp, and select "Windows Update Cleanup":

Attached File  01_DiskCleanUp.png (7.41K)
Number of downloads: 41

Attached File  02_DiskCleanUp.png (21.16K)
Number of downloads: 39

Attached File  03_DiskCleanUp.png (6.87K)
Number of downloads: 31

What is does, in addition to the DISM command, is to also use the NTFS compression to compress files, that are not removable and files that are not in use like drivers, the backup and Manifest folder!

Attached File  01_Win8_WinSxS_original_size.png (224.29K)
Number of downloads: 77

Attached File  02_Win8_WinSxS_after_cleanup_size.png (198.5K)
Number of downloads: 103

As you can see, the WinSxS folder is now 500MB smaller when activating the compression!


This is a fantastic news for SSD users :) :thumbup

#64 User is offline   xpclient 

  • XP was my idea. I had to fight Windows 7 to make it my idea
  • PipPip
  • Group: Members
  • Posts: 233
  • Joined: 30-July 05
  • OS:XP Pro x64
  • Country: Country Flag

Posted 26 October 2012 - 06:32 AM

Hey this is FANTASTIC. I bet my ranting on the Servicing Guy's blog paid off. Posted Image This is what Windows 7 should have had. This is a MAJOR improvement over Windows 7, but I bet they only did it for Windows 8 because of all the ranting about WinSxS.

This post has been edited by xpclient: 26 October 2012 - 06:33 AM


#65 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • Group: Patrons
  • Posts: 4,972
  • Joined: 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Posted 26 October 2012 - 01:42 PM

I've explained this to MSFT since 2007 and they always ignored it. But now they finally understood the issue.

#66 User is offline   xpclient 

  • XP was my idea. I had to fight Windows 7 to make it my idea
  • PipPip
  • Group: Members
  • Posts: 233
  • Joined: 30-July 05
  • OS:XP Pro x64
  • Country: Country Flag

Posted 26 October 2012 - 09:05 PM

I just wish SO BADLY it was in Windows 7 too. :) It was the biggest cause of WinSxS bloating over time. Faulty OS design. Now they corrected it but broke a dozen other features in Windows 8. :(

#67 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • Group: Patrons
  • Posts: 4,972
  • Joined: 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Posted 27 October 2012 - 01:17 AM

With StartIsBack the largest issue can be fixed. Now we must wait for an AeroGlass Patch.

#68 User is offline   ricktendo 

  • Group: Banned Members
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,229
  • Joined: 06-June 06
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 27 October 2012 - 02:02 AM

View PostMagicAndre1981, on 21 October 2012 - 07:42 AM, said:

Windows 8 has a new feature that I've requested over years! You can now detect and remove replaced updates so that the WinSxS folder no longer grows so much!

To do this, run this command from comamnd prompt with admin rights:

dism.exe /online /cleanup-image /startcomponentcleanup



WOW! nice find

#69 User is offline   ricktendo 

  • Group: Banned Members
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,229
  • Joined: 06-June 06
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 27 October 2012 - 12:30 PM

View Postxpclient, on 26 October 2012 - 09:05 PM, said:

I just wish SO BADLY it was in Windows 7 too...

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

Quote

/CheckHealth, /ScanHealth, /RestoreHealth, /Source, and /LimitAccess can only be used when servicing Windows 8 or Windows Server 2012 images.

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

#70 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • Group: Patrons
  • Posts: 4,972
  • Joined: 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Posted 27 October 2012 - 01:02 PM

no, this is also new to Windows 8, but it is hidden from the help.

This post has been edited by MagicAndre1981: 30 October 2012 - 10:08 AM


#71 User is offline   neuropass 

  • Member
  • PipPip
  • Group: Members
  • Posts: 127
  • Joined: 09-September 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 23 January 2013 - 09:10 AM

[
dism.exe /online /cleanup-image /startcomponentcleanup



Im assuming this will work offline too right?

#72 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • Group: Patrons
  • Posts: 4,972
  • Joined: 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Posted 23 January 2013 - 09:54 AM

it should but it only works if there are no pending operations.

#73 User is offline   neuropass 

  • Member
  • PipPip
  • Group: Members
  • Posts: 127
  • Joined: 09-September 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 24 January 2013 - 02:45 PM

View PostMagicAndre1981, on 23 January 2013 - 09:54 AM, said:

it should but it only works if there are no pending operations.



I see. If you install hotfixes first, then will most likely create a pending status.. so you wont be able to use that cmd..

#74 User is offline   nowse 

  • Group: Members
  • Posts: 2
  • Joined: 22-February 06

Posted 15 March 2013 - 07:24 AM

Hi all.
I have an image (install.wim) of windows 8 AIO and extratc the volume I want "windows 8 pro 64 bit whit mediacenter".he ADK software installed, but do not command.

I have the install.wim file in c: \ X \ install.wim and do not like me the command to extratc the volume 8 pro 64 bit windows mediacenter whit another install.wim

thanks and regards

#75 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • Group: Patrons
  • Posts: 4,972
  • Joined: 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Posted 15 March 2013 - 01:37 PM

???

I understand nothing. What do you want? AIO sounds like warez, so msfn is not the place to get support.

#76 User is offline   Tomorrow 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 357
  • Joined: 20-December 07
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 15 April 2013 - 02:58 AM

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.


#77 User is offline   MagicAndre1981 

  • after Windows 7 GA still Vista lover :)
  • Group: Patrons
  • Posts: 4,972
  • Joined: 28-August 05
  • OS:Vista Ultimate x86
  • Country: Country Flag

Posted 15 April 2013 - 12:35 PM

no, it still works:

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



Share this topic:


  • 4 Pages +
  • « First
  • 2
  • 3
  • 4
  • You cannot start a new topic
  • You cannot reply to this topic

5 User(s) are reading this topic
0 members, 5 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy