【发布时间】:2013-07-01 03:01:33
【问题描述】:
我将一个 PHP 网站从 win2003sp2 Standard 移至 win7 Enterprise。没有改变。该网站在win2003下工作正常。但是在win7中通过win32_query_service_status()获取服务状态时,返回WIN32_ERROR_ACCESS_DENIED。
我想不通。
作为 Dan 提供的链接,我知道 Win2003 与后来的 Windows 对于远程身份验证用户不同。是我无法通过我的网站页面获取服务状态的根本原因吗?
引用:Windows Server 2003 and Windows XP: Remote authenticated users are granted the SC_MANAGER_CONNECT, SC_MANAGER_ENUMERATE_SERVICE, SC_MANAGER_QUERY_LOCK_STATUS, and STANDARD_RIGHTS_READ access rights. These access rights are restricted as described in the previous table as of Windows Server 2003 with SP1
自win2003sp1 起,访问权限受到限制。但该网站在win2003sp2 上运行正常。我认为这可能不是根本原因。
【问题讨论】: