Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Monday, January 22, 2018 9:37 AM
What happened to the get-windowsfeature cmdlet?? It was working a few days ago, receiving the error message below. Tested it on several PC's running Windows 10.
get-windowsfeature : The term 'get-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 a
gain.
At line:1 char:1
- get-windowsfeature
-
+ CategoryInfo : ObjectNotFound: (get-windowsfeature:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
All replies (8)
Tuesday, January 23, 2018 7:52 AM | 2 votes
Hi,
Get-WIndowsFeature is part of ServerManager module which is available only on Windows Server.
You can use this command:
dism /online /get-features
Hope it will be helpful to you
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].
Thursday, January 25, 2018 11:16 AM
Hi,
Haven't received your message a few days, was your issue resolved?
I am proposing previous helpful replies as "Answered". Please feel free to try it and let me know the result. If the reply is helpful, please remember to mark it as answer which can help other community members who have same questions and find the helpful reply quickly.
Best regards,
Carl
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].
Sunday, January 28, 2018 9:19 AM
Hi,
Any update?
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].
Tuesday, January 30, 2018 3:09 PM
I just ran this on one Windows 10 workstation just fine. Now, on another, and it doesn't work.
There must be an answer not having to do with servers?
Tuesday, January 30, 2018 11:52 PM | 2 votes
What happened to the get-windowsfeature cmdlet?
Were you thinking of Get-WindowsOptionalFeature ?
PS>Get-Help Get-*Feature
Name Category Module Synopsis
Get-WindowsOptionalFeature Cmdlet Dism Get-WindowsOptionalFeature...
Wednesday, July 11, 2018 2:21 PM
Agree with this observation.
Get-WindowsFeature was functional on desktops, and then perhaps an upgrade or something and it stopped working.
Cannot find the actual code for Get-WindowsFeature function anywhere in the modules. So even though it is listed as under 'ServerManager' module, searching all the .ps* files in that module folder isn't finding the code.
Tuesday, July 17, 2018 9:49 AM
Version 10.0.16299 Build 16299
Not working for me either. Same error:
"The term 'Get-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."
I assume Windows 10 also has Features? ;-)
Thursday, April 11, 2019 11:40 PM | 1 vote
Get-WindowsFeature is now only a server OS cmdlet.
The equivalent on Win10 is:
Get-WindowsCapability
(also Add-WindowsCapability, Remove-WindowsCapability)
I don't know which Win 10 build was first to have this change, but that's how it is now.
BTW, you can now add the various RSAT tools from Settings > Apps & Features > Manage Optional Features.
We no longer need to go download the RSAT msu bundle; it's already local (unless your image is custom and it's been stripped out, yada yada).