Windows Service service Account = Network
-
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
-
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
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... -
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
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.