How enable/disable windows feature from command line

This post talksabout the command line options for enabling/disabling features in Windows 7 OS.

Features like, GPMC,telnet, DHCP, DNS and other can be enabled or disabled with the command “dism”.This utility can also be used for querying features, packages, adding drivers,etc. Below are the some of the examples.

 

To view list of installaed features:

dism/online /Get-features

 

To enable a feature(GPMC in this example)

dism/online /enable-feature/featurename:RemoteServerAdministrationTools-Features-GP

 

To disable a feature(GPMC in this example)

dism/online /disable-feature/featurename:RemoteServerAdministrationTools-Features-GP

 

Note: Please note that feature namesare case sensitive and make sure to provide them as you see in query results.

More informationabout DISM(Deployment Image Servicing and Management) is available at http://technet.microsoft.com/en-us/library/dd744566(WS.10).aspx

 

你可能感兴趣的:(windows,image,command,query,features,Deployment)