Share via


install-windowsFeature command does not work in PS 5.0 on Windows 10

Question

Monday, October 30, 2017 12:40 AM

I get the following error: No spelling error in ComputerName

Install-WindowsFeature : The term 'Install-WindowsFeature' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:1

  • Install-WindowsFeature -Name WindowsPowerShellWebAccess -ComputerName ...

    + CategoryInfo          : ObjectNotFound: (Install-WindowsFeature:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Jayaram Krishnaswamy

All replies (2)

Monday, October 30, 2017 6:59 PM âś…Answered

Install-WindowsFeature is a Server cmdlet afaik, Different ways for installing Windows features on the command line

So would be Enable-WindowsOptionalFeature would be the one for Windows 10 it would appear.


Monday, October 30, 2017 8:12 PM | 1 vote

Thank you for the clarification.

Jayaram Krishnaswamy