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
Wednesday, May 22, 2019 10:12 AM
Enable-WindowsOptionalFeature : The term 'Enable-WindowsOptionalFeature' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling o
f the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\lvltuser\Desktop\PreRequisites1.ps1:2 char:30
+ Enable-WindowsOptionalFeature <<<< -Online -FeatureName NetFx3 -Verbose
+ CategoryInfo : ObjectNotFound: (Enable-WindowsOptionalFeature:String) [], CommandNotFoundException
+ FullyQualifiedErrorId :
All replies (1)
Thursday, May 23, 2019 2:12 AM
Hi,
Thanks for your question.
- What is the version of your computer? enable-WindowsOptionalFeature is a Windows 8+ unique command. The PowerShell cmdlet only uses the DISM module to add/remove Windows features. For this, it requires the DISM version included with Windows 8+.
So try the following command "Get-Module dism" to check if your module is included in your computer.
- In addition, you need to run this command with elevated administrator privileges.
Best regards,
Lee
Just do it.