我安装了一个新的互动服务。
我尝试在服务管理器中设置属性“允许服务与桌面交互”。
之后,我在来自service的事件查看器错误消息中发现:“服务被标记为交互式服务。但是,系统被配置为不允许交互服务。此服务可能无法正常工作。“
我所有修复此错误的尝试都失败了:
错误信息仍然存在。需要做些什么来纠正服务器配置以允许交互服务?
系统: Windows 2012 R2版本6.3 (Build 9600)
发布于 2017-07-19 14:49:41
Windows Server 2008/12生产线
环境Windows服务
因为Windows Server在默认情况下不再允许交互服务。
警告:本文包含有关编辑注册表的信息。对注册表的不适当更改会永久损坏操作系统。在进行任何更改之前,始终备份注册表。要运行此服务,您必须通过以下步骤调整注册表项。
1. Open registry editor by going to start and typing in regedit.exe.
2. On the registry tree, navigate to HKEY_Local_Machine\System\CurrentControlSet\Control\Windows.
3. Find the DWORD "NoInteractiveServices".
4. Change the value from a 1 to 0.
5. Restart the Server.
发布于 2018-08-21 12:48:18
我在用Embarcadero C++ Builder编译的服务中也遇到了同样的问题。Windows还抱怨说,在我重新启动服务器之前,不允许使用交互式服务。Windows Server 2008和Windows 2012的情况都是如此。在2008年的例子中,NoInteractiveServices已经被关闭。但是在Server 2012上,当操作系统完成重新启动时,NoInteractiveServices就可以运行我的服务了。
https://stackoverflow.com/questions/37675224
复制相似问题