access to network share from windows service using WebClient
I need to create windows service that would:
- download some files from uri (google.com, \\localnetwork\share, etc) using WebClient
- stop, remove, install, start other windows services
- create some local files
what account should my service use? local service(what about 2 and 3) ? local system (service have to work with \\localnetwork\share)? my user with specific rights?
update
one more option is to use local system acco开发者_开发技巧unt and map network drive (if it is file://uri), but this is not recommended
anyone? please
I would set up a purpose built user with the appropriate rights to the network shares and local file system. It should only have the rights necessary to run as a service and accomplish those goals.
精彩评论