如果您无法更改安全(Security)设置或Hyper-V中的(Hyper-V)安全(Security)设置页面显示为灰色,这里有一些简单的解决方案可以恢复这些选项。此页面可能会显示一条错误消息,指出 无法修改某些设置,因为打开窗口时虚拟机处于以下状态:正在运行(Some settings cannot be modified because the virtual machine was in the following state when the window was opened: running)。如果您收到任何此类消息,以下是您如何摆脱它并使所有选项可见的方法。
整个消息错误消息是这样说的:
Some settings cannot be modified because the virtual machine was in the following state when the window was opened: running. To modify a setting that is unavailable, shut down the virtual machine and then reopen this window.
如果安全设置灰显或您在(Security)Hyper-V中看到某些设置无法修改消息,请使用以下方法更改它们:
如果您仔细阅读错误消息,您可能会在那里找到解决方案。在更改这些设置之前,您必须关闭虚拟机。但是,有时,您可能无法关闭虚拟机,而是出现一些其他错误。另一方面,即使没有虚拟机在运行,Hyper-V 的安全设置页面也可能是灰色的。(Security)在这种情况下,您需要停止所有后台进程。
Hyper-V中的安全设置显示为灰色
如果您无法更改Hyper-V中的(Hyper-V.)安全(Security)设置,则需要关闭虚拟机。 要关闭虚拟机,请执行以下步骤:
- 关闭安全设置窗口。
- 选择屏幕上的虚拟机窗口。
- 单击(Click)顶部菜单栏中的关闭(Shut Down)按钮。
- (Click)如果关闭(Shut Down)选项不起作用,请单击关闭(Turn Off)按钮。
- 重新打开设置(Settings)页面以更改安全(Security)设置。
首先,您必须关闭已打开或显示错误消息的安全设置窗口。(Security)然后,选择在您的计算机上运行的虚拟机,然后单击“ 关闭” (Shut Down )按钮。
但是,如果它显示任何错误并且无法关闭您的虚拟机,您可以单击“ 关闭 (Turn Off )”按钮之前可见的“ 关闭” (Shut Down )按钮。
现在,您可以重新打开安全(Security)设置页面来更改任何设置。但是,如上所述,如果两个选项都没有执行任何操作,则必须停止所有与Hyper-V 相关的(Hyper-V-related)后台进程。
阅读(Read):如何在 Windows 10 Home 上安装和启用 Hyper-V(How to install and enable Hyper-V on Windows 10 Home)。
在Hyper-V(Hyper-V)中无法修改某些设置
要解决此问题,您需要停止并重新启动与Hyper-V相关的后台进程,如下所示:
- 关闭 Hyper-V 管理器。
- 在任务栏(Taskbar)搜索框中搜索“服务”,然后单击结果。
- 找出HV 主机服务(HV Host Service)并双击它。
- 单击停止按钮。
- 单击开始按钮。
- 单击确定按钮。
- 打开Hyper-V并转到安全(Security)设置部分以更改选项。
- 重复这些步骤以重新启动其他Hyper-V服务。
要开始使用,请关闭Hyper-V 管理器(Hyper-V Manager)并打开计算机上的“ 服务(Services)” 窗口。为此, 请 在任务栏搜索框中搜索(Taskbar)服务(services),然后单击搜索结果。打开后,可以找到几个Hyper-V相关的服务:
- 高压主机服务
- Hyper-V 数据交换服务
- Hyper-V 访客服务接口
- Hyper-V 来宾关闭服务
- Hyper-V 心跳服务
- Hyper-V 主机计算机服务
- Hyper-V PowerShell 直接服务
- Hyper-V远程桌面虚拟化服务(Remote Desktop Virtualization Service)
- Hyper-V时间同步服务(Time Synchronization Service)
- Hyper-V 虚拟机管理
- Hyper-V 卷影复制请求程序(Shadow Copy Requestor)
首先,双击 HV 主机服务(HV Host Service) 并单击 停止 (Stop )按钮。
然后,单击“ 开始 (Start )”按钮重新启动服务。
接下来,检查您是否可以更改安全(Security)设置。如果没有,请重复相同的步骤以重新启动与Hyper-V相关的所有其他服务。
就这样!希望(Hope)这些解决方案有效。
相关阅读: (Related read: )如何在 Windows 10 中使用 Hyper-V 安装 Windows 11。(How to Install Windows 11 using Hyper-V in Windows 10.)
Security settings are Grayed out in Hyper-V
Іf you cannot change Security settings or the Security settings page is grayed out in Hyper-V, here are some sіmple solutions to get the options back. This page can show an error message saying Some settings cannot be modified because the virtual machine was in the following state when the window was opened: running. If you are getting any such message, here is how you can get rid of it and make all options visible.
The entire message error message saying something like this:
Some settings cannot be modified because the virtual machine was in the following state when the window was opened: running. To modify a setting that is unavailable, shut down the virtual machine and then reopen this window.
If Security settings are grayed out or you see Some settings cannot be modified message in Hyper-V, then use these methods to change them:
- Shut down the running virtual machine
- Stop background processes
If you read the error message minutely, you may find the solution there itself. You have to shut down the virtual machine before changing these settings. However, at times, you might not be able to shut down a virtual machine and instead get some other errors. On the other hand, Hyper-V’s Security settings page might be grayed out even if no virtual machine is running. In such situations, you need to stop all the background processes.
Security settings are grayed out in Hyper-V
You need to shut down the virtual machine if you cannot change Security settings in Hyper-V. To shut down the virtual machine, follow these steps:
- Close the Security settings window.
- Select the virtual machine window on your screen.
- Click on the Shut Down button in the top menu bar.
- Click on the Turn Off button if the Shut Down option is not working.
- Reopen the Settings page to change the Security settings.
At first, you have to close the Security setting window that is already opened or showing the error message. Then, select the virtual machine that is running on your computer and click on the Shut Down button.
However, if it shows any error and fails to shut down your virtual machine, you can click on the Turn Off button visible before the Shut Down button.
Now, you can reopen the Security settings page to change any setting. However, as mentioned above, if both the options are not doing anything, you must stop all the Hyper-V-related background processes.
Read: How to install and enable Hyper-V on Windows 10 Home.
Some settings cannot be modified in Hyper-V
To resolve this issue, you need to stop and restart background processes related to Hyper-V, as follows:
- Close Hyper-V Manager.
- Search for “services” in the Taskbar search box and click on the result.
- Find out HV Host Service and double-click on it.
- Click on the Stop button.
- Click on the Start button.
- Click the OK button.
- Open Hyper-V and go to the Security settings section to change options.
- Repeat the steps to restart other Hyper-V services.
To get started, close the Hyper-V Manager and open the Services window on your computer. For that, search for services in the Taskbar search box and click on the search result. Once it is opened, you can find several Hyper-V related services:
- HV Host Service
- Hyper-V Data Exchange Service
- Hyper-V Guest Service Interface
- Hyper-V Guest Shutdown Service
- Hyper-V Heartbeat Service
- Hyper-V Host Computer Service
- Hyper-V PowerShell Direct Service
- Hyper-V Remote Desktop Virtualization Service
- Hyper-V Time Synchronization Service
- Hyper-V Virtual Machine Management
- Hyper-V Volume Shadow Copy Requestor
First, double-click on the HV Host Service and click on the Stop button.
Then, click on the Start button to restart the service.
Next, check if you can change the Security settings or not. If not, repeat the same steps to restart all the other services related to Hyper-V.
That’s all! Hope these solutions worked.
Related read: How to Install Windows 11 using Hyper-V in Windows 10.