Windows Service Question

J

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
 
M

Mohamoss

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
 
J

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 ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top