Skip navigation

Q. How can I enable or disable a Windows role or feature with DISM?

A. You can use the /enable-feature switch with DISM enable a feature or role on a Windows 7 or Windows Server 2008 R2 installation. For example, the command

dism /online /enable-feature:InkSupport

will enable ink support, as shown here.

Deployment Image Servicing and Management tool
Version: 6.1.7600.16385

Image Version: 6.1.7600.16385

Enabling feature(s)


=====================\] The operation completed successfully. Restart Windows to complete this operation. Do you want to restart the computer now (Y/N)? n

Similarly, you can use the /disable-feature option to disable a role/feature.

You can get the name of the role or feature you want using DISM's /get-features and /online switches.

Related Reading:

Check out hundreds more useful Q&As like this in John Savill's FAQ for Windows. Also, watch instructional videos made by John at
Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.