|
-
Jun 5th, 2007, 11:38 PM
#1
Frenzied Member
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.
-
Jun 6th, 2007, 03:07 AM
#2
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
-
Jun 6th, 2007, 09:35 AM
#3
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|