I want to turn on/off windows features programmatically.Manually it can be done via control panel->Programs and features->Turn windows feature on or off.
Is there any windows api to do so? or any com interface to mange this?
I want to turn on/off windows features programmatically.Manually it can be done via control panel->Programs and features->Turn windows feature on or off.
Is there any windows api to do so? or any com interface to mange this?
You should be able to use DismEnableFeature
which is part of Deployment Image Servicing and Management (DISM) API.
you can use a powershell script and intall-windowsfeature cmdlet :
Install-WindowsFeature -Name Web-Server