MSFN Forum: DISM Improvements in Windows 8 - MSFN Forum

Jump to content


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

DISM Improvements in Windows 8

#21 User is offline   MagicAndre1981 

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

Posted 06 April 2012 - 04:53 AM

View PostmaxXPsoft, on 05 April 2012 - 07:23 PM, said:

if the new dism will also remove from a 7 system source or has anyone tested that?


no, this only works for Windows 8.

View Postcdob, on 06 April 2012 - 02:40 AM, said:

Dism can capture and apply images

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

Quote

Dism /Capture-Image /ImageFile:install.wim /CaptureDir:D:\ /Name:Drive-D
Dism /apply-image /imagefile:install.wim /index:1 /ApplyDir:D:\


Usage examples:
http://technet.micro...y/hh825072.aspx
http://technet.micro...y/hh824910.aspx


thanks for the examples which I didn't wrote in my first post :) :thumbup


#22 User is offline   rorygilmore 

  • Group: Members
  • Posts: 4
  • Joined: 13-January 11
  • OS:none specified
  • Country: Country Flag

Posted 10 April 2012 - 04:46 PM

View PostMagicAndre1981, on 22 February 2012 - 11:17 AM, said:

DISM includes a new option in Windows 8. The /Remove Parameter in the /Disable-Feature command.

The syntax is the following:

DISM.exe /Online /Disable-Feature /Featurename:<name> /Remove


If you use the Disable-Feature in Vista and Windows 7, the files from the disabled feature are still stored in the WinSxS folder and you get NO additional free HDD space when disabling a feature.

The /Remove-Flag changes this in Windows 8. NOW ALL THE FILES ARE REMOVED FROM THE WINSXS Folder!

Example:

Run DISM.exe /Online /English /Get-Features /Format:Table to see which featues you have and you see something like this:

Quote

----------------------------------------------------- | -----------------------------
Feature Name | State
----------------------------------------------------- | -----------------------------
SimpleTCP | Enabled


If you now run DISM.exe /Online /Disable-Feature /Featurename:SimpleTCP /Remove the SimpleTCP feature is disabled and the files associated with the SimpleTCP Feature are removed. If you run /Get-Features again you see this:

Quote

----------------------------------------------------- | -----------------------------
Feature Name | State
----------------------------------------------------- | -----------------------------
SimpleTCP | Disabled with Payload Removed


Payload Removed = DLLs removed from WinSxS. if you now want to enable the features, the "Turn Windows Features on or off" asks to download the missing files:



So this is the safe way to disable features and getting more free HDD space :thumbup :thumbup :thumbup :thumbup



This does nothing when I do it on an offline or online image, it doesn't make the WinSxS anysmaller or anything... weird.

#23 User is offline   MagicAndre1981 

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

Posted 12 April 2012 - 08:13 AM

which features have you disabled?

#24 User is offline   aryan_ai 

  • Group: Members
  • Posts: 4
  • Joined: 29-July 08

Posted 13 April 2012 - 02:08 PM

rorygilmore - I am also seeing same thing

MagicAndre1981 - I tried to remove Hyper V stuff ( all features which starts with Microsoft-Hyper-V-*) and IIS related stuff, but the resulted WIM size is little bigger than original one.


View PostMagicAndre1981, on 12 April 2012 - 08:13 AM, said:

which features have you disabled?


#25 User is offline   MagicAndre1981 

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

Posted 14 April 2012 - 04:13 AM

I think this is the same limitation like Legos Toolkit. The files are removed after you've installed Windows.

#26 User is offline   marcusj0015 

  • Member
  • PipPip
  • Group: Members
  • Posts: 154
  • Joined: 05-July 09

Posted 17 April 2012 - 11:09 AM

This is AMAZING, Hopefully it'll work with Windows 7, and hopefully *Crosses Fingers* they add the ability to isntall EXEs/MSIs

#27 User is offline   marcusj0015 

  • Member
  • PipPip
  • Group: Members
  • Posts: 154
  • Joined: 05-July 09

Posted 17 April 2012 - 11:13 AM

View Postaryan_ai, on 13 April 2012 - 02:08 PM, said:

rorygilmore - I am also seeing same thing

MagicAndre1981 - I tried to remove Hyper V stuff ( all features which starts with Microsoft-Hyper-V-*) and IIS related stuff, but the resulted WIM size is little bigger than original one.


View PostMagicAndre1981, on 12 April 2012 - 08:13 AM, said:

which features have you disabled?



You probably haven't exported the image to a new file, if you opened the WIM with 7-Zip, you'd see a [FILES] folder, that contains all the removed files. those are not copied over when you use the export option.

#28 User is offline   MagicAndre1981 

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

Posted 17 April 2012 - 03:29 PM

View Postmarcusj0015, on 17 April 2012 - 11:09 AM, said:

This is AMAZING, Hopefully it'll work with Windows 7, and hopefully *Crosses Fingers* they add the ability to isntall EXEs/MSIs


no, if MS would open the new AppX format for desktop applications it would work. But MS doesn't care about this :realmad:

#29 User is offline   darkmatter 

  • Newbie
  • Group: Members
  • Posts: 33
  • Joined: 19-November 09
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 17 April 2012 - 08:49 PM

View PostMagicAndre1981, on 08 October 2011 - 06:59 AM, said:

I only want to post that DISM from Windows 8 adds some new cool features. You can now use VHD images and not only WIMs:

/Get-MountedImageInfo   - Displays information about mounted WIM and VHD images.
  /Get-ImageInfo          - Displays information about images in a WIM or VHD file.
  /Commit-Image           - Saves changes to a mounted WIM or VHD image.
  /Unmount-Image          - Unmounts a mounted WIM or VHD image.
  /Mount-Image            - Mounts an image from a WIM or VHD file.
  /Remount-Image          - Recovers an orphaned image mount directory.
  /Cleanup-Mountpoints    - Deletes resources associated with mounted
                            images that are corrupt.



Example:

DISM /Mount-Image /ImageFile:"D:\VHD\6.1.7601.17514.amd64fre.win7sp1_rtm.101119-1850.Ultimate.de-DE.vhd" /Index:1 /MountDir:"D:\VHD\Mount"

DISM /Image:D:\VHD\Mount /Add-Package /PackagePath:"D:\Windows6.1-KB2545698-x64.msu"

DISM /Unmount-Image /MountDir:D:\VHD\Mount /Commit



There also also new commands which replaces the old ImageX completely:

/List-Image             - Displays a list of the files and folders within a 
                            specified image.
  /Delete-Image           - Deletes the specified volume image from a .wim file 
                            with multiple volume images.
  /Split-Image            - Splits an existing .wim file into multiple read-only 
                            split .wim (SWM) files.
  /Export-Image           - Exports a copy of the specified image to another file.
  /Append-Image           - Adds an additional image to a .wim file.
  /Capture-Image          - Captures an image of a drive into a new .wim file. 
                            Captured directories include all subfolders and data.



And a really cool thing is the new /Optimize Parameter when mounting WIMs:

Quote

Use /Optimize to reduce initial mount time and improve the speed of many servicing commands.


:thumbup



Yeah, this is definitely a cool upgrade

#30 User is offline   aryan_ai 

  • Group: Members
  • Posts: 4
  • Joined: 29-July 08

Posted 18 April 2012 - 05:37 PM

I opened the install.wim file using 7zip utility but didn't see any directory with [files]. However using the WinKit tool I am seeing the installer size as 9.6Gb instead of 10.6GB. I will install the OS on virtual machine and let's see how it goes.

View Postmarcusj0015, on 17 April 2012 - 11:13 AM, said:

View Postaryan_ai, on 13 April 2012 - 02:08 PM, said:

rorygilmore - I am also seeing same thing

MagicAndre1981 - I tried to remove Hyper V stuff ( all features which starts with Microsoft-Hyper-V-*) and IIS related stuff, but the resulted WIM size is little bigger than original one.


View PostMagicAndre1981, on 12 April 2012 - 08:13 AM, said:

which features have you disabled?



You probably haven't exported the image to a new file, if you opened the WIM with 7-Zip, you'd see a [FILES] folder, that contains all the removed files. those are not copied over when you use the export option.


#31 User is offline   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,748
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 30 April 2012 - 07:40 PM

Any ideas how to use the /Optimize
I installed the ADK and nothing points to that

#32 User is offline   MagicAndre1981 

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

Posted 01 May 2012 - 05:17 AM

Add it to the command line when mounting a WIM with DISM.

But it only seam to be useful if you mount the WIM to read data (calling discard at unmount). Adding new files like updates causes errors.

#33 User is offline   chlje 

  • Newbie
  • Group: Members
  • Posts: 26
  • Joined: 06-April 11
  • OS:none specified
  • Country: Country Flag

Posted 04 June 2012 - 06:51 AM

View PostMagicAndre1981, on 10 October 2011 - 06:21 AM, said:

yes. I installed the Assessment and Deployment Kit (ADK) which replaces the WAIK

Attachment Setup_ADK_07_01.png

on my Windows 7 Sp1 and tested it with a VHD of Win7 Sp1 which I use for native booting and it works fine.

Currently the ADK is only available for MSDN subscribers.

Thanks for your post, install ADK in win7,
will the win8 DISM conflict with win7's? or totally replaced win7's?
after installation of ADK, we can use win8 DISM in win7 with your mentioned incredible improvement commands to win7 wim/image, like disable.../Remove to remove win7 features and its file in winsxs? etc
pls give me a hand as a newbie.

#34 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,676
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 04 June 2012 - 07:31 AM

Since ADK is a replacement for both WAIK and OPK, but has a different name, it doesn't "physically" replace them. It installs to a different folder, so there is no more conflict of having multiple versions installed. The only difference may be that the old PE Tools Command Prompt may not work as expected. As far as actual tools go, DISM from ADK will deprecate the IMAGEX.EXE tool.

#35 User is offline   chlje 

  • Newbie
  • Group: Members
  • Posts: 26
  • Joined: 06-April 11
  • OS:none specified
  • Country: Country Flag

Posted 04 June 2012 - 07:36 AM

View PostTripredacus, on 04 June 2012 - 07:31 AM, said:

Since ADK is a replacement for both WAIK and OPK, but has a different name, it doesn't "physically" replace them. It installs to a different folder, so there is no more conflict of having multiple versions installed. The only difference may be that the old PE Tools Command Prompt may not work as expected. As far as actual tools go, DISM from ADK will deprecate the IMAGEX.EXE tool.


tks, I go over the whole post and should make clear :)
actually i expect much more win7 sp2 than win8, haha...

#36 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 04 June 2012 - 11:05 PM

DISM is better than PkgMgr and other Vista-era tools but I am too lazy to use CLI, to type long commands and remember them. Prefer a GUI tool and MS doesn't make GUI deployment tools. There's System Image Manager which has a GUI for creating an answer file. Wish DISM also had a GUI. There are third party GUIs for DISM though, that's nice.

#37 User is offline   marcusj0015 

  • Member
  • PipPip
  • Group: Members
  • Posts: 154
  • Joined: 05-July 09

Posted 27 June 2012 - 07:36 PM

Can we remove the startscreen with the new dism, or possibly with the Windows 7 Components remover?

#38 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,676
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 28 June 2012 - 08:19 AM

The documentation for that doesn't even seem to be in the ADK yet. While I know that will not be supported, there is not any info yet (that I can find) even for the featured apps, even though I have seen other stuff about that ability. So far I am disappointed with the Windows 8 documentation in the ADK.

This post has been edited by Tripredacus: 29 June 2012 - 07:54 AM
Reason for edit: missed a very important word


#39 User is offline   MagicAndre1981 

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

Posted 29 June 2012 - 06:04 AM

View PostTripredacus, on 28 June 2012 - 08:19 AM, said:

The documentation for that doesn't even seem to be in the ADK yet. While I know that will be supported,


really?

#40 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,676
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 29 June 2012 - 07:53 AM

View PostMagicAndre1981, on 29 June 2012 - 06:04 AM, said:

View PostTripredacus, on 28 June 2012 - 08:19 AM, said:

The documentation for that doesn't even seem to be in the ADK yet. While I know that will not be supported,


really?


Oops I made a typo.

Well not so much disabling Metro. I don't think that would be in there. But there is supposed to be some app-management type things you can do (like how you could feature apps in Start Menu) which I would think people could use to help learn how Metro works.

Every time I go into the ADK documentation looking for something I come up empty, but I remember Vista's beta OPK documentation had the same problem. They'll get it sorted out. :w00t:

The only place I can think where disabling Metro would be officially supported would be in Windows 8 Embedded, which I still haven't gotten around to download yet.

Share this topic:


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

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



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