我在Windows 7 Enterprise计算机上安装应用程序时遇到问题。 安装程序将创build一个服务进程将运行的用户。 但是,我得到了我的日志(安装程序和安装的服务)上的代码错误1385。 我在这样的环境中设法隔离了这个问题。 我可以很容易地重现它做:
runas /env /user:thehostname\thejustcreatedusername
那么请inputthejustcreatedusername用户名密码,结果得到:
Erreur de RUNAS : Impossible d'exécuter - notepad 1385 - Échec d'ouverture de session : l'utilisateur ne bénéficie pas du type d'ouverture de session demandé sur cet ordinateur.
我认为它对应于英文版本: Logon failure: the user has not been granted the requested logon type at this computer 。
在互联网上,我发现我应该授予用户access this computer from network权利。 我按照https://technet.microsoft.com/en-us/library/dd277404.aspx上的步骤,通过Local Security Policy工具,但没有成功(仍然是1385错误)。 我还将我的用户添加到拥有该权限但尚未成功的Users组。 但是,如果我将该用户添加到pipe理员组,RUNAS命令的作品,我看到一个记事本正在启动。
我应该在这样的用户中更改哪个设置才能成功运行该模拟命令?
您可能需要login为服务权限。
事实上,乔恩,授予这一权利,并Allow log on locally做的伎俩。
有一个解释为什么安装程序在一些环境中工作,并在其他一些失败。 它在用户组被授予这些权限(这是默认情况下我认为)的环境下正常工作,因此新用户inheritance这些权限,导致非故障情况。 但是,在非工作环境中,用户组没有被授予这样的权利,因此新创build的用户没有inheritance,因此在安装和运行时都出现了错误。
谢谢!