开发者

access to network share from windows service using WebClient

开发者 https://www.devze.com 2023-01-29 03:26 出处:网络
I need to create windows service that would: download some files from uri (google.com, \\\\localnetwork\\share, etc) 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

精彩评论

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