Copy files from the network through the Windows service

I have batch files, its copies of some files from the network to the local drive. When you try to start it from a Windows service, I get an "Access Denied" error message.

I am already trying to start a Windows service like LocalSystem, LocalService and NetworkService. All of these types get the same error.

Any ideas?

thanks

+3
source share
2 answers

NetworkService is the only one that will include network credentials here, and it will be the local computer identifier. Does the computer account have access to this resource? If this is not the case, you need to start the service as a special account for a specific user.

+4

? ACL /?

ACL , ...

, DOMAIN\networkservice . .

0

Source: https://habr.com/ru/post/1725274/


All Articles