Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

copy files from network via windows service

I have batch files, its copy some files from network to local disk. When try to run it from a windows service I get an error like "Access Denied".

I already try run windows service as LocalSystem , LocalService and NetworkService. All these types get same error.

Have any idea ?

Thanks

like image 409
Sefer K Avatar asked Dec 10 '25 12:12

Sefer K


1 Answers

NetworkService is the only one that is going to include network credentials here, and that will be the local machine's identity. Does the machine account have access to the share? If this isn't correct, you'll need to run the service as a dedicated, specific user account.

like image 159
Marc Gravell Avatar answered Dec 13 '25 00:12

Marc Gravell



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!