Posted June 6, 201410 yr Hi,Dism for Windows 7 offers no function to remove components like in Windows 8 or at least I didn't find it. Example for Dism in Windows 8DISM.exe /Online /Disable-Feature /Featurename:Solitaire /RemoveHowever in Windows 7 you can remove single components via Control Panel -> Programs and Features -> Turn Windows Features on or off.This starts OptionalFeatures.exe, but I couldn't find any arguments for this exe. With WinToolkit you can for example only remove the whole game group, but not single games.Is there a way to remove components via a command?
June 7, 201410 yr Unfortunately, Windows 7 does not have that option with DISM to remove/disable components from the DVD. That feature was added to the Windows 8 DISM (but also is not able to remove/disable items under Win7). An alternative way around that is to use an autoattend.xml to install *only* what you want from your install disk. That is about the only way to "not" have some items installed under Windows 7. SIDE NOTE: It appears that the "optionalfeatures.exe" does not have any command line options. (One *might* be able to use an autoit or vbs script to automate an option removal, however this would only be able to be performed on a live working system.)
October 11, 201410 yr for example in bat file... Dism /online /Disable-Feature /FeatureName:TabletPCOC /norestartDism /online /Disable-Feature /FeatureName:FaxServicesClientPackage /norestartDism /online /Disable-Feature /FeatureName:Printing-XPSServices-Features /norestartDism /online /Disable-Feature /FeatureName:Internet-Explorer-Optional-x86 /norestartDism /online /Disable-Feature /FeatureName:Xps-Foundation-Xps-Viewer /norestartDism /online /Disable-Feature /FeatureName:TIFFIFilter /norestartDism /online /Disable-Feature /FeatureName:WindowsGadgetPlatform /norestartDism /online /Disable-Feature /FeatureName:MediaPlayback /norestartDism /online /Disable-Feature /FeatureName:WindowsMediaPlayer /norestartDism /online /Disable-Feature /FeatureName:MediaCenter /norestartDism /online /Disable-Feature /FeatureName:OpticalMediaDisc /norestartDism /online /Disable-Feature /FeatureName:Printing-Foundation-Features /norestartDism /online /Disable-Feature /FeatureName:Printing-Foundation-InternetPrinting-Client /norestartDism /online /Disable-Feature /FeatureName:MSRDC-Infrastructure /norestart
October 12, 201410 yr if you want disable features in install.wim, create a new folder (here C:\new), mount install.wim in "new" folder and use dos command: Dism /Image:C:\new /Disable-Feature /FeatureName:TabletPCOCDism /Image:C:\new /Disable-Feature /FeatureName:FaxServicesClientPackageDism /Image:C:\new /Disable-Feature /FeatureName:Printing-XPSServices-FeaturesDism /Image:C:\new /Disable-Feature /FeatureName:Internet-Explorer-Optional-x86Dism /Image:C:\new /Disable-Feature /FeatureName:Xps-Foundation-Xps-ViewerDism /Image:C:\new /Disable-Feature /FeatureName:TIFFIFilterDism /Image:C:\new /Disable-Feature /FeatureName:WindowsGadgetPlatformDism /Image:C:\new /Disable-Feature /FeatureName:MediaPlaybackDism /Image:C:\new /Disable-Feature /FeatureName:WindowsMediaPlayerDism /Image:C:\new /Disable-Feature /FeatureName:MediaCenterDism /Image:C:\new /Disable-Feature /FeatureName:OpticalMediaDiscDism /Image:C:\new /Disable-Feature /FeatureName:Printing-Foundation-FeaturesDism /Image:C:\new /Disable-Feature /FeatureName:Printing-Foundation-InternetPrinting-ClientDism /Image:C:\new /Disable-Feature /FeatureName:MSRDC-Infrastructure here is for x86 windows 7 features. unmount with save another explanation here : http://technet.microsoft.com/en-us/library/hh824822.aspx important: for works, you need original winsxs backup folder. Erase it after if you want. Edited October 12, 201410 yr by kalimergo
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.