简体   繁体   English

在本地系统下运行的Windows服务能否在其运行的计算机上创建新文件?

[英]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.

相关问题 我们可以访问在本地系统下运行的Windows服务中的网络文件吗? - Can we access network file in windows service running under local system? 在带有“本地系统帐户”的“ Windows服务”下运行时,.NET Windows 7截屏不起作用 - .NET Windows 7 take screenshot not working when running under 'Windows Service' with 'Local System Account' Windows服务作为本地服务运行-输入文件? - Windows service running as local service - input files? 如何获取以用户身份运行的Windows 7应用程序的MainWindowHandle <foo> 从作为本地系统运行的服务中? - How can I get the MainWindowHandle of a Windows 7 application running as user <foo> from within a service running as Local System? 作为系统帐户运行的 Windows 服务如何获取当前用户的 \AppData\Local\ 特殊文件夹? - How can Windows service running as System account get current user's \AppData\Local\ special-folder? 将Windows服务作为“本地系统”运行有哪些安全风险? - What are the security risks in running a Windows Service as “Local System”? 在作为本地系统运行的 windows 服务中进行键盘和鼠标操作? - Making keyboard and mouse operations in a windows service running as a local system? Windows,启动服务 System.InvalidOperationException:无法在计算机“.”上启动服务拒绝访问(以管理员身份运行) - Windows, Start service System.InvalidOperationException: Cannot start service on computer '.' Access in Denied(Running as Admin) 连接到在另一台计算机上作为 Windows 服务运行的 WCF - Connecting to WCF running as a Windows Service on another computer 通过在本地配置文件下运行服务,从Windows服务获取用户appdata路径 - Get user appdata path from windows service by running service under local profile
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM