473,395 Members | 1,869 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Windows Service Question

Jm
Hi all

Im writing a windows service app that accepts some remote control commands
and reports to a database server. One command i would like to use is
basically remote execution. When i start a program from the windows service
it appears to launch under another user other than who is logged in (network
service ?) the service logs on as local system. Is impersonation where i
should be looking ? Or is there a specific way i should be launching
external programs ? Any help is greatly appreciated

Thanks
Nov 21 '05 #1
2 951
Hi Jm
Don't have to just run it as a system service , You can run this service
with the credentials of some user account ( from services , right click
your service , properties ' Log on , then choose this account instead of
local system account and enter the credentials of the user you want your
service to run under ). You need to change this however if the account
information changes.
Mohamed M .Mahfouz
Developer Support Engineer
ITWorx on behalf of Microsoft EMEA GTSC

Nov 21 '05 #2
Jm
Hi mohamed

Thanks for the reply. Yes i could do that, the only problem with that is
that i wont know the credentials of another user because it will be run by
end users with very little rights to the machines. There is another windows
service in place which that will pull the new version of the windows service
that im writing down from an update server so i dont actually go anywhere 9
out of 10 of the machines. Is there some other way that i could do this ?

"Mohamoss" <mo************@egdsc.microsoft.com> wrote in message
news:M5**************@cpmsftngxa10.phx.gbl...
Hi Jm
Don't have to just run it as a system service , You can run this service
with the credentials of some user account ( from services , right click
your service , properties ' Log on , then choose this account instead of
local system account and enter the credentials of the user you want your
service to run under ). You need to change this however if the account
information changes.
Mohamed M .Mahfouz
Developer Support Engineer
ITWorx on behalf of Microsoft EMEA GTSC

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Shawn Buchanan-Cook | last post by:
Hello, I have created a windows service that executes a application (that has a user interface), and therefore I have the "Allow service to interact with desktop" checked... I have found that...
1
by: Jack David | last post by:
How would I convert the following console app to a windows service?? using System; using System.IO; using FileProcessor;
3
by: Nathan Kovac | last post by:
I have a feeling I am missing something simple, but I just can't find it. Perhaps someone can give me a lead on where to look. I will describe the issue then post my code to the web service. My...
1
by: vul | last post by:
I created Windows Service in VB.Net with the name MSFaxListener. It should listen Windows Fax Service events and update SQL Server database when fax job changes it's status. In order to do that in...
0
by: lcifers | last post by:
As mentioned in my earlier post regarding creating an application object from a Windows service, I have a Windows app that I'm migrating to a Windows service. This is the first time I have written...
4
by: ggillard | last post by:
Hi, I'm new to writing services and found it pretty easy using VB.NET. My service has an internal timer that fires every 3 seconds. Each time it fires it opens a SQL DB and looks for a...
5
by: Tom | last post by:
Using multiple System.Timers.Timer objects in a Windows Service for performing multi-thread activities in a periodic fashion. Timers are AutoReset=false, to only have a single timer execution...
4
by: Gordon | last post by:
Hi; I have developed a VB.net app in a module that queries a database, loads the data into several arrays and then loops through the array. It then compares time data stored in the array with...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.