我试图按照本文档中显示的说明,在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子系统?
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] 删除。
我来说两句