Wednesday, August 24, 2011

Enabling a Windows Feature via a script

image

Here is a quick way:

dism.exe /online /Enable-Feature:MSMQ-HTTP /PackageName:Microsoft-Windows-Foundation-Package~31bf3856ad364e35~amd64~~6.1.7601.17514

The above example enables MSMQ-HTTP support. (you can exclude the PackageName in this case, as the default package is “Microsoft-Windows-Foundation-Package”)

To list all features installed, run:

dism.exe /online /Get-Features

For more help regarding dism run:

dism.exe /online /Enable-Feature /? or

dism.exe /online /?

No comments: