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

AkDev 6 Reputation points
2021-06-28T06:51:02.24+00:00

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?

Internet Information Services
Windows Server Setup
Windows Server Setup
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
255 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Sam Wu-MSFT 7,531 Reputation points Microsoft Vendor
    2021-06-29T02:25:22.13+00:00

    Hi @AkDev

    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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.