点击桌面左下角的搜索框。 输入“PowerShell”。 在搜索结果中找到“Windows PowerShell”,右键点击它,然后选择“以管理员身份运行”。 在弹出的UAC(用户账户控制)提示框中,点击“是”以确认。 重新运行enable-windowsoptionalfeature命令: 在以管理员身份运行的PowerShell窗口中,输入以下命令来启用所需的Windows可选...
PowerShell 复制 PS C:\> Enable-WindowsOptionalFeature -Path "c:\offline" -FeatureName "Calc" -PackageName "Microsoft.Windows.Calc.Demo~6595b6144ccf1df~x86~en~1.0.0.0" This command enables the optional feature, Calc, in the specified package in the Windows image that is mounted to c:\...
PowerShell Copia PS C:\> Enable-WindowsOptionalFeature -Path "c:\offline" -FeatureName "Calc" -PackageName "Microsoft.Windows.Calc.Demo~6595b6144ccf1df~x86~en~1.0.0.0"This command enables the optional feature, Calc, in the specified package in the Windows image that is mounted to c:\...
PowerShell複製 Enable-WindowsOptionalFeature-FeatureName<String[]> [-PackageName <String>] [-All] [-LimitAccess] [-Source <String[]>] [-NoRestart] [-Online] [-WindowsDirectory <String>] [-SystemDrive <String>] [-LogPath <String>] [-ScratchDirectory <String>] [-LogLevel <LogLevel>] [...
PowerShell Kopija Enable-WindowsOptionalFeature -FeatureName <String[]> [-PackageName <String>] [-All] [-LimitAccess] [-Source <String[]>] [-NoRestart] -Path <String> [-WindowsDirectory <String>] [-SystemDrive <String>] [-LogPath <String>] [-ScratchDirectory <String>] [-LogLevel <...
在PowerShell 中安装和部署 Hyper-V 相关组件时,可以使用Install-WindowsFeature或Enable-WindowsOptionalFeature命令来安装所需的功能。以下是安装 Hyper-V 相关组件的常用命令,以及它们的分类和描述。 PowerShell 安装 Hyper-V 组件命令分类 命令示例 安装Hyper-V 核心功能 ...
PowerShellCopy Enable-WindowsOptionalFeature-FeatureName<String[]> [-PackageName <String>] [-All] [-LimitAccess] [-Source <String[]>] [-NoRestart] [-Online] [-WindowsDirectory <String>] [-SystemDrive <String>] [-LogPath <String>] [-ScratchDirectory <String>] [-LogLevel <LogLevel>] [...
PowerShellCopy Enable-WindowsOptionalFeature-FeatureName<String[]> [-PackageName <String>] [-All] [-LimitAccess] [-Source <String[]>] [-NoRestart] [-Online] [-WindowsDirectory <String>] [-SystemDrive <String>] [-LogPath <String>] [-ScratchDirectory <String>] [-LogLevel <LogLevel>] [...
简介:Containers feature is disabled. Enable it using the PowerShell script (in an administrative PowerShe 1、问题如题如下图 2、解决办法 以管理员身份运行Window Terminal(Windows PowerShell),输入图上下方所示命令 Enable-WindowsOptionalFeature -Online -FeatureName $("Microsoft-Hyper-V", "Containers")...
PowerShell Copiar Enable-WindowsOptionalFeature -FeatureName <String[]> [-PackageName <String>] [-All] [-LimitAccess] [-Source <String[]>] [-NoRestart] -Path <String> [-WindowsDirectory <String>] [-SystemDrive <String>] [-LogPath <String>] [-ScratchDirectory <String>] [-LogLevel <...