开发者

access to network share from windows service using WebClient

I need to create windows service that would:

  1. download some files from uri (google.com, \\localnetwork\share, etc) using WebClient
  2. stop, remove, install, start other windows services
  3. 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜