[英]Can a Windows service running under Local System create new files on the computer it is running on?
I have created a Windows Service that has a function that creates a new file. 我创建了一个Windows服务,该服务具有创建新文件的功能。
It is running under "Local System account" with "Allow service to interact with desktop" set to true. 它在“允许与桌面交互的服务”设置为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. 我无法对其进行调试以获取确切的错误,因为它在未安装适当调试器的Lab Manager环境中运行。
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. 任何帮助将不胜感激。
"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.
您不能为此访问映射的网络驱动器或任何其他网络资源。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.