Windows Help Support

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Friday, 20 January 2012

Manage Windows Features From Command Line With DISM

Posted on 17:52 by Unknown
Windows 7 and Server 2008 R2 includes a new command line utility to enable and disable Windows features. The Deployment Image Servicing and Management tool (DISM) is perfect for IT professionals and power users that want to manage Windows components without using the GUI. Since it is a command line utility it can be used in scripts to manage components.


Using DISM requires an administrative level command prompt. Click on the Start Button, type in cmd, hold down Shift and Ctrl and hit Enter (holding down Shift and Ctrl while hitting enter will start any command you type in as administrator).

Once you have your Administrative level command prompt running you can start experimenting with DISM. To get a list of features you can type in dism /online /get-features | more and hit Enter.

The output will be similar to this:

Feature Name : OEMHelpCustomization
State : Disabled

Feature Name : CorporationHelpCustomization
State : Disabled

Feature Name : SimpleTCP
State : Disabled

Feature Name : SNMP
State : Disabled

Feature Name : WMISnmpProvider
State : Disabled

Feature Name : TelnetServer
State : Disabled

Feature Name : TelnetClient
State : Disabled

Feature Name : WindowsGadgetPlatform
State : Enabled

Feature Name : InboxGames
State : Disabled

Feature Name : More Games
State : Disabled

Feature Name : Solitaire
State : Disabled

Feature Name : SpiderSolitaire
State : Disabled

Feature Name : Hearts
State : Disabled

Feature Name : FreeCell
State : Disabled

Feature Name : Minesweeper
State : Disabled

Feature Name : PurblePlace
State : Disabled

Feature Name : Chess
State : Disabled

Feature Name : Shanghai
State : Disabled

Feature Name : Internet Games
State : Disabled

Feature Name : Internet Checkers
State : Disabled

Feature Name : Internet Backgammon
State : Disabled

Feature Name : Internet Spades
State : Disabled

Feature Name : IIS-WebServerRole
State : Disabled

Feature Name : IIS-WebServer
State : Disabled

Feature Name : IIS-CommonHttpFeatures
State : Disabled

Feature Name : IIS-HttpErrors
State : Disabled

Feature Name : IIS-HttpRedirect
State : Disabled

Feature Name : IIS-ApplicationDevelopment
State : Disabled

Feature Name : IIS-NetFxExtensibility
State : Disabled

Feature Name : IIS-HealthAndDiagnostics
State : Disabled

Feature Name : IIS-HttpLogging
State : Disabled

Feature Name : IIS-LoggingLibraries
State : Disabled

Feature Name : IIS-RequestMonitor
State : Disabled

Feature Name : IIS-HttpTracing
State : Disabled

Feature Name : IIS-Security
State : Disabled

Feature Name : IIS-URLAuthorization
State : Disabled

Feature Name : IIS-RequestFiltering
State : Disabled

Feature Name : IIS-IPSecurity
State : Disabled

Feature Name : IIS-Performance
State : Disabled

Feature Name : IIS-HttpCompressionDynamic
State : Disabled

Feature Name : IIS-WebServerManagementTools
State : Disabled

Feature Name : IIS-ManagementScriptingTools
State : Disabled

Feature Name : IIS-IIS6ManagementCompatibility
State : Disabled

Feature Name : IIS-Metabase
State : Disabled

Feature Name : WAS-WindowsActivationService
State : Disabled

Feature Name : WAS-ProcessModel
State : Disabled

Feature Name : WAS-NetFxEnvironment
State : Disabled

Feature Name : WAS-ConfigurationAPI
State : Disabled

Feature Name : IIS-HostableWebCore
State : Disabled

Feature Name : IIS-StaticContent
State : Disabled

Feature Name : IIS-DefaultDocument
State : Disabled

Feature Name : IIS-DirectoryBrowsing
State : Disabled

Feature Name : IIS-WebDAV
State : Disabled

Feature Name : IIS-ASPNET
State : Disabled

Feature Name : IIS-ASP
State : Disabled

Feature Name : IIS-CGI
State : Disabled

Feature Name : IIS-ISAPIExtensions
State : Disabled

Feature Name : IIS-ISAPIFilter
State : Disabled

Feature Name : IIS-ServerSideIncludes
State : Disabled

Feature Name : IIS-CustomLogging
State : Disabled

Feature Name : IIS-BasicAuthentication
State : Disabled

Feature Name : IIS-HttpCompressionStatic
State : Disabled

Feature Name : IIS-ManagementConsole
State : Disabled

Feature Name : IIS-ManagementService
State : Disabled

Feature Name : IIS-WMICompatibility
State : Disabled

Feature Name : IIS-LegacyScripts
State : Disabled

Feature Name : IIS-LegacySnapIn
State : Disabled

Feature Name : IIS-FTPServer
State : Disabled

Feature Name : IIS-FTPSvc
State : Disabled

Feature Name : IIS-FTPExtensibility
State : Disabled

Feature Name : IIS-WindowsAuthentication
State : Disabled

Feature Name : IIS-DigestAuthentication
State : Disabled

Feature Name : IIS-ClientCertificateMappingAuthentication
State : Disabled

Feature Name : IIS-IISCertificateMappingAuthentication
State : Disabled

Feature Name : IIS-ODBCLogging
State : Disabled

Feature Name : MediaPlayback
State : Enabled

Feature Name : WindowsMediaPlayer
State : Enabled

Feature Name : MediaCenter
State : Enabled

Feature Name : OpticalMediaDisc
State : Enabled

Feature Name : NetFx3
State : Enabled

Feature Name : WCF-HTTP-Activation
State : Disabled

Feature Name : WCF-NonHTTP-Activation
State : Disabled

Feature Name : RasRip
State : Disabled

Feature Name : RasCMAK
State : Disabled

Feature Name : MSMQ-Container
State : Disabled

Feature Name : MSMQ-Server
State : Disabled

Feature Name : MSMQ-Triggers
State : Disabled

Feature Name : MSMQ-ADIntegration
State : Disabled

Feature Name : MSMQ-HTTP
State : Disabled

Feature Name : MSMQ-Multicast
State : Disabled

Feature Name : MSMQ-DCOMProxy
State : Disabled

Feature Name : TabletPCOC
State : Enabled

Feature Name : ServicesForNFS-ClientOnly
State : Disabled

Feature Name : ClientForNFS-Infrastructure
State : Disabled

Feature Name : NFS-Administration
State : Disabled

Feature Name : SUA
State : Disabled

Feature Name : Printing-Foundation-Features
State : Enabled

Feature Name : Printing-Foundation-LPRPortMonitor
State : Disabled

Feature Name : Printing-Foundation-LPDPrintService
State : Disabled

Feature Name : Printing-Foundation-InternetPrinting-Client
State : Enabled

Feature Name : FaxServicesClientPackage
State : Enabled

Feature Name : ScanManagementConsole
State : Disabled

Feature Name : Xps-Foundation-Xps-Viewer
State : Enabled

Feature Name : TFTP
State : Disabled

Feature Name : MSRDC-Infrastructure
State : Enabled

Feature Name : Printing-XPSServices-Features
State : Enabled

Feature Name : Indexing-Service-Package
State : Disabled

Feature Name : Internet-Explorer-Optional-x86
State : Enabled

Feature Name : TIFFIFilter
State : Disabled

Feature Name : SearchEngine-Client-Package
State : Enabled

To enable a feature you need the full feature name as displayed on the previous /get-features command. The full feature name is case sensitive! Once you have the full feature name type in dism /online /enable-feature /featurename:<feature name> and hit Enter.

For example, to enable Media Center run dism /online /enable-feature /featurename:MediaCenter.

To disable a feature type in dism /online /disable-feature /featurename:<feature name> and hit Enter.

For example, to disable Media Center run dism /online /disable-feature /featurename:MediaCenter. 

Enabling or disabling some features will require a reboot. If you are using the DISM command within a script and want to prevent asking to reboot simply append /NoRestart to the end of your command.
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in How-To, Windows 7 | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

Categories

  • Downloads
  • How-To
  • Internet and Network Tweaks
  • News
  • Performance Tweaks
  • Security Tweaks
  • Software Tweaks
  • Tips
  • Usability Tips
  • User Interface Tweaks
  • Utility Downloads
  • Windows 7
  • Windows 8
  • Windows Home Server
  • Windows Server 2008
  • Windows Server 2008 R2
  • Windows Vista
  • Windows XP

Blog Archive

  • ▼  2012 (70)
    • ▼  January (70)
      • Quick Aero Glass Speed Tip
      • Improve Sync Performance In iTunes For Windows
      • Improve SATA Hard Disk Performance (Convert From I...
      • Improve Responsiveness By Disabling Min/Max Animat...
      • Improve Old Application Disk Performance
      • How To: Detect What Process Is Thrashing Your Hard...
      • Fix Broken And Slow Tab Issues In Internet Explorer 8
      • Boost Your Performance With ReadyBoost
      • Analyze Energy Efficiency
      • Windows 7 Beta MP3 Corruption Fix
      • Window Management Keyboard Tricks
      • Where Did All My Free Space Go?
      • What Is svchost.exe?
      • Virtualization On Windows
      • Unlock Hidden Windows 7 Themes
      • Start Explorer In Drive View
      • Spell Check Add-on For Internet Explorer 9
      • Share Your Screen With SharedView
      • Search The Office 2010 Ribbon With Search Commands
      • Search The Office 2007 Ribbon With Search Commands
      • Restore Start Menu Internet Search
      • Recover Deleted Photos, Pictures And Other Files
      • Remove Personal Information From Office Documents
      • Publish Native XP Apps On XP Mode (Use IE6 On Wind...
      • Projector Tricks In Windows 7
      • Pin Recycle Bin On The Taskbar
      • Optimize Solid State Drives In Windows 7
      • Open Command Prompt From Any Folder
      • New Taskbar Keyboard Tricks
      • Move The Temporary Internet Files Folder
      • Manage Windows Features From Command Line With DISM
      • Kill Processes From Command Prompt
      • Install Group Policy And AD Tools On Windows 7
      • Install Any Edition Of Windows 7 From Any Windows ...
      • Install And Use XP Mode In Windows 7
      • How To Remove Internet Explorer From Windows 7
      • How To Properly Disable IPv6
      • How To Mount A VHD File In Windows 7
      • How To Install Telnet With Only One Command
      • How To Fix Windows Installer Crashes
      • How To Burn CD And DVD Images (ISO Files) From The...
      • Hide Background Windows With Aero Shake
      • Hidden Send To Menu In Windows 7
      • Fix Aero Glass In Windows 7
      • Enable Vista Glass On Compatible Hardware
      • Fine Tune Windows 7 On Netbooks
      • How To Install Windows 7 And 8 Using A USB Flash D...
      • Fine Tune ClearType Font Smoothing
      • Extend Activation Period To 120 Days
      • Encrypt Removable USB Flash Drives With BitLocker
      • Enable RAW Image Support In Windows Explorer And P...
      • Enable Legacy Windows Help File Support (.hlp file)
      • Enable iOS AirPrint Support On Windows
      • Enable Aero Glass In Windows Virtual PC
      • Disable iPhone AutoPlay Pop-up
      • Create A System Repair/Recovery Disc
      • Create A Flip3D Taskbar Icon In Windows 7
      • Convert Physical Machines To Virtual With Disk2vhd
      • Configure Remote Media Streaming In Windows 7
      • Configure IP Address And DNS From Command Line
      • Close All Open Applications With One Click
      • Clean And Optimize Your New Computer
      • Change Windows Product Key After Install
      • Change Remote Desktop RDP Port
      • Create An Account Lockout Policy
      • Turn On Auditing To Monitor Account Attacks
      • Calibrate Your Display
      • Bypass Open With Lookup Web Service
      • Batch File Rename With Windows PowerShell
      • Automatic Location Based Default Printer Switching
Powered by Blogger.

About Me

Unknown
View my complete profile