question

AkDev-7018 avatar image
0 Votes"
AkDev-7018 asked SamWu-MSFT answered

Windows cannot find 'C:\Windows\System32\OptionalFeatures.exe'. error while clicking Turn Windows feature on or off in control panel

109774-screenshot-8.png



I have tried sfc /scannow with cmd but it is also showing
sfc scannow is not recognized as an internal or external command in cmd

(Basically I need to access FTP site and want to setup IIS)

I have set path also in Environment variable
Also cannot do anything from Registry Editor

My PATH in Environment variable is

C:\Python27;C:\Python27\Scripts;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS;C:\Windows\System32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\dotnet;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn;C:\Program Files\Azure Data Studio\bin;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn;C:\Program Files\Microsoft SQL Server\150\Tools\Binn;C:\Program Files\Microsoft SQL Server\150\DTS\Binn;C:\Users\Akshay\AppData\Local\Android\Sdk\tools;C:\Users\Akshay\AppData\Local\Android\Sdk\platform-tools;C:\Program Files\nodejs;C:\ProgramData\chocolatey\bin;C:\Program Files\Java\jdk1.8.0_211\bin;C:\Program Files\MongoDB\Server\4.4\bin;C:\Program Files\Git\cmd;

Can anyone point me in better direction?

windows-server-iiswindows-server-setup
screenshot-8.png (28.8 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SamWu-MSFT avatar image
0 Votes"
SamWu-MSFT answered

Hi @AkDev-7018

There are many reasons for this problem, you can try the following solutions:

  1. Use the System File Checker tool to troubleshoot missing or corrupted system files on windows.

  2. Open a command prompt with admin rights, run this new DISM command to fix this corruption: DISM /Online /Cleanup-Image /RestoreHealth

  3. If it still does not work, please perform system restore according to the version of your windows version.


If the answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.