Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
用于检查用户是否具有启动windows服务的权限的命令 我正在创建一个需要停止然后启动名为“MyService”的服务的安装程序。 安装程序始终以管理员身份运行,但有时管理员组的用户没有启动和/或停止服务的权限。 在这种情况下,当我尝试启动服务时,访问将被_Windows_Service_Permissions_Command - Fatal编程技术网

用于检查用户是否具有启动windows服务的权限的命令 我正在创建一个需要停止然后启动名为“MyService”的服务的安装程序。 安装程序始终以管理员身份运行,但有时管理员组的用户没有启动和/或停止服务的权限。 在这种情况下,当我尝试启动服务时,访问将被

用于检查用户是否具有启动windows服务的权限的命令 我正在创建一个需要停止然后启动名为“MyService”的服务的安装程序。 安装程序始终以管理员身份运行,但有时管理员组的用户没有启动和/或停止服务的权限。 在这种情况下,当我尝试启动服务时,访问将被,windows,service,permissions,command,Windows,Service,Permissions,Command,用于检查用户是否具有启动windows服务的权限的命令 我正在创建一个需要停止然后启动名为“MyService”的服务的安装程序。 安装程序始终以管理员身份运行,但有时管理员组的用户没有启动和/或停止服务的权限。 在这种情况下,当我尝试启动服务时,访问将被拒绝。 我想在启动/停止服务之前检查用户是否有这样做的权限。 发现使用 SCSDshowMyService 这显示了安全描述符,我可以获得SID和访问级别。 从这一点上找出访问,原来是困难的。使该用户所属的组无法访问启动/停止服务。 找到他所属

用于检查用户是否具有启动windows服务的权限的命令 我正在创建一个需要停止然后启动名为“MyService”的服务的安装程序。 安装程序始终以管理员身份运行,但有时管理员组的用户没有启动和/或停止服务的权限。 在这种情况下,当我尝试启动服务时,访问将被拒绝。 我想在启动/停止服务之前检查用户是否有这样做的权限。 发现使用 SCSDshowMyService 这显示了安全描述符,我可以获得SID和访问级别。 从这一点上找出访问,原来是困难的。使该用户所属的组无法访问启动/停止服务。 找到他所属的用户组的列表,我没有得到任何直接方法。 有没有办法确定用户(我有用户名和SID)是否有权启动/停止服务Myservice? 如果没有任何直接方法来获取用户所属的组列表? I am creating an installer that need to stop and then start a service named "MyService". The installer is always run as admin, But some times the user of admin group does not have a permission to start and/or stop the service. In this case I will get access denied when I try to start the service. I want to check prior to start/stop service that if the user have permission to do so. Found that using sc sdshow myservice This shows the security descriptor and I can GET the SID and access level. From this finding out access, turned out to be difficult. That it can so have that a group that this user is member of is turned to have no access to start/stop service. Finding the list of group of a user that he belongs to, I did not get any direct method. Is there any way to find if the user (I have user name and SID) has permission to start/stop service Myservice? If not any direct method to get list of groups that the user is member of?