Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Windows Service service Account = Network

Windows Service service Account = Network

Scheduled Pinned Locked Moved C#
sysadminhelptutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yadlaprasad
    wrote on last edited by
    #1

    Hi, I am trying to write a windows service which is used to pull some data on the network(Intranet) for regular intervals (for every 30 minutes). but i am very new to this. i googled on the internet but i found all the samples on Service Account type=localsysatem but not the Network. can any one give me some sample example how we can pull data on network? even i just tried a sample to make a log entry with in the localsystem for every 5 minutes. but it makes any entry when you stop or start service manually but its not doing that automatically. even i set the property "SrartType" of serviceinstaller to 'Automatic'. can any one please help me??

    fttyhtrhyfytrytrysetyetytesystryrty

    D P 2 Replies Last reply
    0
    • Y yadlaprasad

      Hi, I am trying to write a windows service which is used to pull some data on the network(Intranet) for regular intervals (for every 30 minutes). but i am very new to this. i googled on the internet but i found all the samples on Service Account type=localsysatem but not the Network. can any one give me some sample example how we can pull data on network? even i just tried a sample to make a log entry with in the localsystem for every 5 minutes. but it makes any entry when you stop or start service manually but its not doing that automatically. even i set the property "SrartType" of serviceinstaller to 'Automatic'. can any one please help me??

      fttyhtrhyfytrytrysetyetytesystryrty

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      The account used doesn't change the code. All you're doing is tell the service which account to login to the system with. Since you're using network resources, this account would have to have permissions to those resources. LocalSystem doesn't have any permissions to anything off of, well, the Local System the service is running on, so it will not be able to get to any network shares or whatever. What do you mean by "how we can pull data on network"? Where is the data coming from? What kind of server? Is there authentication involved? ...

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008
      But no longer in 2009...

      1 Reply Last reply
      0
      • Y yadlaprasad

        Hi, I am trying to write a windows service which is used to pull some data on the network(Intranet) for regular intervals (for every 30 minutes). but i am very new to this. i googled on the internet but i found all the samples on Service Account type=localsysatem but not the Network. can any one give me some sample example how we can pull data on network? even i just tried a sample to make a log entry with in the localsystem for every 5 minutes. but it makes any entry when you stop or start service manually but its not doing that automatically. even i set the property "SrartType" of serviceinstaller to 'Automatic'. can any one please help me??

        fttyhtrhyfytrytrysetyetytesystryrty

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #3

        Have your domain admins create a user specifically for this Service and use that.

        yadlaprasad wrote:

        every 30 minutes

        That may not be frequent enough to warrent a Windows Service. You could try a Scheduled Task and see how that works.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups