How to Auto login in window system using Window Service?

Posted by Hmanjarawala under C# on 2/28/2012 | Points: 10 | Views : 1680 | Status : [Member] | Replies : 6
Hi all,

I've developed a Window service, which executes on its set schedule.
when my service start working it locks machine and asap it finishes its task it again unlock machine.

now this behaviour works fine with earlier system (Xp, Server 2003) but not with Win7 or Server2008.

I know the reason....but i want solution any how.

Kindly help me for this

Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/



Responses

Posted by: Ogipansrk on: 2/28/2012 [Member] Starter | Points: 25

Up
0
Down
what is your error?

Hmanjarawala, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hmanjarawala on: 2/28/2012 [Member] Bronze | Points: 25

Up
0
Down
Hi buddy,
i didn't get any error....just Web Service no behave exactly as i want..

Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/

Hmanjarawala, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Blessyjees on: 2/29/2012 [Member] Bronze | Points: 25

Up
0
Down
Hi,

you can set log on as local system in the installer project of the windows service.

Blessy Baby
Digitalmesh Softech pvt Ltd
https://blessybaby.wordpress.com/

Hmanjarawala, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hmanjarawala on: 2/29/2012 [Member] Bronze | Points: 25

Up
0
Down
Hi blessy,
This service runs fine on WinXP and Server2003, but not on Win7 and Server2008 nad later on OS...

Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/

Hmanjarawala, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Blessyjees on: 2/29/2012 [Member] Bronze | Points: 25

Up
0
Down
hi,

We had faced same issue. It is working properly after set the log on with administrator previliege

Blessy Baby
Digitalmesh Softech pvt Ltd
https://blessybaby.wordpress.com/

Hmanjarawala, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hmanjarawala on: 2/29/2012 [Member] Bronze | Points: 25

Up
0
Down
Sorry blessy....
still its not working

Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/

Hmanjarawala, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response