469,293 Members | 1,319 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,293 developers. It's quick & easy.

How to start and stop windows Services on remote machine using C#


I can aceess ths windows services on remote machine. but i can not start and stop the services.it gives some error message like " can not open 'service name' on comuter 'machine name'.
Please suggest me....

Nov 12 '08 #1
2 10394
797 Expert 512MB
First up, open your Service Manager on your local computer and connect it to the remote computer...

Find the relevant service and make sure you can stop it and restart it by this means. If you can, then great, you should be able to stop it using code. If you can't stop it, it's because you don't have the relevant permissions so you'll have to provide a means to stop/start it using a different user token.
Nov 12 '08 #2
Thanks a lot for reply.

I was able to access the service manager of remote computer but i was not able to restart or start/stope the services. please can u tell me how to get the privileges, is it necessary for connecting to the remote computer to have admin privileges.
If possible please can you send me the code.

Nov 12 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Mark | last post: by
16 posts views Thread by Serdar Kalaycý | last post: by
reply views Thread by martin | last post: by
3 posts views Thread by Goran Djuranovic | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.