在工作组的情况下,如何在远程计算机上授予 Windows 服务访问权限? [英] How can I give a windows service access on a remote machine in case of Workgroup?
问题描述
我正在开发一项 Windows 服务,其中一项任务是在远程机器上归档文件,但我在工作组的情况下遇到了访问权限问题.
I'm working on a Windows Service that one of its tasks is archiving files on remote machine but I've a problem regarding access privileges in case of Workgroup.
推荐答案
最简单的方法是在两台机器上镜像用户名和密码,在两台机器上创建相同的帐户,然后在该帐户下运行您的服务.由于您在工作组而不是域中,因此远程登录可以使用,但一旦您进入不再有效的域中.
The simplest way is to mirror the username and password on both machines, creating the same account on both machines, then run your service under that account. As you're in a workgroup and not a domain the remote login will work, but once you're in a domain that no longer works.
您不能使用任何内置服务帐户(网络服务、本地服务、本地系统)
You cannot use any of the built in service accounts (Network Service, Local Service, Local System for this)
这篇关于在工作组的情况下,如何在远程计算机上授予 Windows 服务访问权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!