Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CommandNotFoundException: get-windowsoptionalfeature

Tags:

powershell

I am using Powershell Version 2 on windows 7. I need to run the following command: get-windowsoptionalfeature

but when I run: get-command -Verb Get, the get-windowsoptionalfeature is not listed and as a result when I enter the command I receive an error stating that "get-windowsoptionalfeature" is not recognized as the name of a cmdlet, function.

Am I missing a dll or something?

like image 907
p0enkie Avatar asked Dec 07 '25 00:12

p0enkie


1 Answers

get-windowsoptionalfeature is only applicable to Windows 8 & Server 2012.

like image 161
alroc Avatar answered Dec 08 '25 14:12

alroc