Results 1 to 18 of 18

Thread: How to access an Service on a Remote PC (Start/Stop it!!!)

Hybrid View

  1. #1
    Frenzied Member
    Join Date
    Dec 2001
    Posts
    1,331

    Re: How to access an Service on a Remote PC (Start/Stop it!!!)

    Hello Peter,

    http://msdn2.microsoft.com/en-us/lib...8VS.71%29.aspx

    Here is an article on how to commuicate with a windows service. Not sure if it is what you want.

    I would be interested in a solution to this problem, if you ever find one.
    steve

  2. #2
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Re: How to access an Service on a Remote PC (Start/Stop it!!!)

    If the machine were in a network you could have done an "impersonation"
    Now you say workgroup, so i'm not sure.
    But have a look at Msdn.
    And a sample: http://www.netomatix.com/ImpersonateUser.aspx

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2007
    Posts
    6

    Re: How to access an Service on a Remote PC (Start/Stop it!!!)

    Hi steve_rm
    Hi sapator

    I have already seen the link to Microsoft descriping the application to start and stop a service. But this application runs on the same PC as the service. I have 2 PC one with the service and one with the VB application. (The 2 PC are on the same network and there are access between them)

    I have made a temperaly solution to the problem, by going trough SQL. From SQL it is possible to run DOC commands. (permission needs to be switched on!) then executing this SELECT statement on the Database on the remote PC from within VB:

    Code:
    SELECT EXEC xxxxxxxxx (somthing like this!!)
    But I do not like the solution, and I need to remeber to switch off the permission to run DOS commands from withing the SQL studio, whne finished.

    Peter

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width