在本地系统下运行的 Windows 服务可以在其运行的计算机上创建新文件吗?
我创建了一个 Windows 服务,它具有创建新文件的功能。
它在“本地系统帐户”下运行,“允许服务与桌面交互”设置为 true。
在该帐户下运行时可以在本地创建文件吗?
我无法对其进行调试以获得确切的错误,因为它在未安装合适的调试器的 Lab Manager 环境中运行。
在我看来,这是一个基于服务崩溃时间的权限问题,因此在尝试其他操作之前我需要的简单答案是该帐户可以在本地系统上创建文件吗?
我似乎找不到有答案的网站......?
任何帮助将不胜感激。
I have created a Windows Service that has a function that creates a new file.
It is running under "Local System account" with "Allow service to interact with desktop" set to true.
When running under this account can files be created locally?
I can't debug this to get the exact error as it is running in a Lab Manager environment that has no suitable debugger installed.
It looks to me to be a permissions problem based on when the service crashes so the simple answer I need before trying anything else is can this account create files on the Local System?
I can't seem to find a site with the answer...?
Any help would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
仅需要“允许服务与桌面交互”才能为登录用户显示消息。
本地系统应该具有对本地硬盘的写访问权限。您无法访问映射的网络驱动器或任何其他网络资源。
"Allow service to interact with desktop" is only needed to be able to display messages for a logged in user.
Local System should have write access to local hard drives. You can not access mapped network drives or any other network resources for that matter.