locked
Windows service cannot move file to shared path RRS feed

  • Question

  • HI,

       I have service running in one of my server. The Service is trying to move one folder in same server to shared path in another server in the same domain. Its returning with error as access denied for target folder.

    I wrote sample windows application to move file which worked as designed. I don't understand why service behave differently.

    Can anyone provide solution for this?

    Regards

    Harsha D


    Harsha Bhat

    Friday, October 30, 2020 9:54 AM

Answers

  • I don't understand why service behave differently.

    I because of permissions. By default a service runs under the account "Local Service" and that account do have permission only for the local system, not on network resources. You have to change the service account to e.g. to your account.

    Olaf Helper

    [ Blog] [ Xing] [ MVP]

    Friday, October 30, 2020 10:13 AM