Windows错误:“无法识别“ Enable-WindowsOptionalFeature”

麦克尔

我试图按照本文档中显示的说明,在Windows 7计算机上安装Linux的Windows子系统

第一步说要运行命令

> Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

但是,我的机器无法识别该Enable-WindowsOptionalFeature命令。

PS C:\> Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Enable-WindowsOptionalFeature : The term 'Enable-WindowsOptionalFeature' 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
+ Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows- ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Enable-WindowsOptionalFeature:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
  • 为什么我的机器无法识别 Enable-WindowsOptionalFeature
  • 如何继续安装Linux的Windows子系统?
猎犬

如何继续安装Linux的Windows子系统?

Windows Subsystem for Linux无法在Windows 7上启用Windows的可选功能

为什么我的机器无法识别Enable-WindowsOptionalFeature

Enable-WindowsOptionalFeature是仅Windows 8+命令。PowerShell cmdlet仅使用DISM模块来添加/删除Windows功能,为此,它需要Windows 8+随附的DISM版本,该cmdletEnable-WindowsOptionalFeature不能在Windows 7计算机上使用。

本主题列出了Windows Server 2016和Windows 10附带的Windows PowerShell模块。列表中的Windows PowerShell模块支持自动化这些版本的Windows操作系统的功能,并提供指向每个模块的cmdlet引用的链接。这些模块使您能够使用Windows PowerShell来管理,维护,配置和开发Windows Server 2016和Windows 10的新功能。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

Windows 10无法识别Enable-WindowsOptionalFeature

Get-WindowsOptionalFeature无法正常工作

Powershell-如何使用Get-WindowsOptionalFeature命令“打开和关闭Windows功能”

如何在Windows 10上将true / false返回给Get-WindowsOptionalFeature

PhpStorm 无法识别 xdebug.remote_enable

std :: enable_if <>的错误

无法识别的“配置”选项“ --enable-executable-profiling”

ffmpeg 无法识别的选项“--enable-libopus”

systemctl enable无法发出方法调用:错误消息

GCC --disable-nls,-enable-languages,-without-header无法识别

Windows Phone XAP文件签名错误-> SignTool错误:无法识别此文件格式,因为无法识别

使用enable_if进行错误重载功能

无法解析符号“ REQUEST_ENABLE_BLUETOOTH”

如何解决'pyspark'无法识别... Windows上的错误?

%windir%无法识别错误

无法识别错误

Windows无法识别GPU

Windows无法识别硬盘

无法识别 Windows USB

Get-WindowsOptionalFeature 输出中的 RestartRequired 和 RestartNeeded 有什么区别?

enable_if继承的成员函数的名称查找错误

OS X:suricata:./configure --enable-nfqueue错误

为什么 enable_if 失败会导致编译时错误?

enable_if +可变参数模板:是UB还是MSVC错误?

引入std :: enable_if后出现“ No match”错误

错误:尚未声明“ std :: enable_if_t”

c ++ 11 enable_if错误-模板参数重新声明

使用enable_shared_from_this的谷物库错误

尝试运行命令时出现Enable-Migrations错误