How to access windows services on remote machine using c#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pnalla
    New Member
    • Nov 2008
    • 13

    #1

    How to access windows services on remote machine using c#

    How to access windows services on remote machine using C#.please give me some example code.also how to start/stop service on remote machine .please give me some example code.

    thanks
    prasad
  • PRR
    Recognized Expert Contributor
    • Dec 2007
    • 750

    #2
    Look in to WMI( windows management instrumentation )... You could login remotly n loop through all services using Win32_SErvices class... and then start stop or send some commands to the windows service..Look into issues of remote access and firewall blocks..

    Another work around is .net remoting...you could have a client and server for same purpose....

    Check this

    Comment

    • PRR
      Recognized Expert Contributor
      • Dec 2007
      • 750

      #3
      Have a look at this Win32_Service Class

      Comment

      Working...