windows service
-
Hi, On my local machine I have admin rights. I run a windows service and it works fine with correct results... Now I would like to run the service under a different account. So I created an account i.e userTest which is on the domain on the network. Then added this userTest to my machines admin users. Question: I do not know why the service does not run under this user's account. When I try to start the service, the message is: "Service on local computer started amd then stopped. Some services stop automatically if they have no work to do, for eaxample, the performance logs and alerts service." Any thoughts please? Regards
-
Hi, On my local machine I have admin rights. I run a windows service and it works fine with correct results... Now I would like to run the service under a different account. So I created an account i.e userTest which is on the domain on the network. Then added this userTest to my machines admin users. Question: I do not know why the service does not run under this user's account. When I try to start the service, the message is: "Service on local computer started amd then stopped. Some services stop automatically if they have no work to do, for eaxample, the performance logs and alerts service." Any thoughts please? Regards
-
So what does it say in the Eventlog?
xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 alpha 4a out now (29 May 2008) -
User Logoff: User Name: userTest Domain: domainName Logon ID: (0x0,0x7493371) Logon Type: 5
-
Nope, not that, look for an exception caused by the service. Or even better, attach a debugger and see what happens.
xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 alpha 4a out now (29 May 2008) -
Hi, On my local machine I have admin rights. I run a windows service and it works fine with correct results... Now I would like to run the service under a different account. So I created an account i.e userTest which is on the domain on the network. Then added this userTest to my machines admin users. Question: I do not know why the service does not run under this user's account. When I try to start the service, the message is: "Service on local computer started amd then stopped. Some services stop automatically if they have no work to do, for eaxample, the performance logs and alerts service." Any thoughts please? Regards
arkiboys wrote:
"Service on local computer started amd then stopped. Some services stop automatically if they have no work to do, for eaxample, the performance logs and alerts service."
This mean that the service has done what it was programmed to do and exited. My guess is that there are some user property that prevents this user from doing the actual work inside the service: -Searching for a file in the wrong directory -Doesn't have the right settings -Hasn't mapped the correct network drive etc Kjetil
-
arkiboys wrote:
"Service on local computer started amd then stopped. Some services stop automatically if they have no work to do, for eaxample, the performance logs and alerts service."
This mean that the service has done what it was programmed to do and exited. My guess is that there are some user property that prevents this user from doing the actual work inside the service: -Searching for a file in the wrong directory -Doesn't have the right settings -Hasn't mapped the correct network drive etc Kjetil
It could also mean that the service stopped prematurely (crashed, or something else).
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 -
Hi, On my local machine I have admin rights. I run a windows service and it works fine with correct results... Now I would like to run the service under a different account. So I created an account i.e userTest which is on the domain on the network. Then added this userTest to my machines admin users. Question: I do not know why the service does not run under this user's account. When I try to start the service, the message is: "Service on local computer started amd then stopped. Some services stop automatically if they have no work to do, for eaxample, the performance logs and alerts service." Any thoughts please? Regards
Services aren't role-based. They're account based. You have to install it for the account you want to use it under, and then log on with that account. Go into the service manager, and change the user account to the desired one.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001 -
Services aren't role-based. They're account based. You have to install it for the account you want to use it under, and then log on with that account. Go into the service manager, and change the user account to the desired one.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001