Can ServiceController control remote domain service?

A

Alex Zhitlenok

Hi,
Can ServiceController control a windows service on a machine that is
in other domain?
What is the proper syntax for machine name, that case?
I tried "domainname\machinename" and "machinename@domainname", both
doesn't work?
If ServiceController does not work with machine in remote domain, is
there any way to get control on such a service?
Thanks,
Alex
 
J

Jeffrey Tan[MSFT]

Hi Alex,

Based on my understanding, you want to use ServiceController to control the
services on another domain machine.

Actually, ServiceController invokes the services explorer tool to control a
service. In Services Explorer, you can use menu to connect to computer in
another domain, so I think you may also get this done through
ServiceController.

Can you tell me what exception do you get when you run the application?
Your path syntax should be correct. I think the problem should be the
permission. Is your application a windows form or Asp.Net application? You
should add the user account for your local machine user in remote machine.

Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
A

Alex Zhitlenok

Hi Jeffrey,
Thank you for your reply.
Unfortunately, I'll be out of my desk for about a week.
I'll do some additional investigation after my coming back and let you
know.
By the way, then I set my own computer full name as "domain\computer"
exception is thrown in MachineName property and it says "machine name
value … is invalid".
Then I set my own computer name in a form "computer@domain" exception
is thrown when I try to get Status and it says "Cannot open Service
ControlManager on computer … This operation might require other
privileges".
I have a domain account and I'm administrator on my computer. Short
name does not provide any difficulties.
Thank you,
Alex
 
J

Jeffrey Tan[MSFT]

Hi Alex,

Thanks very much for your feedback.

I think you may first check in the "Service Controller manager" to control
the remote machine service. This will clarify us whether the problem is due
to the Program or your user account does not have the adequate privilege.

You may go to "Control Panel" -> "Administrative Tools" -> "Services", then
right click the Root node "Services(Local)", in the context menu, choose
"Connect to another computer...".
In the popup "Select Computer" dialog, click "Browse..." button, then in
the "Enter the object name to select: " edit field, you may type you wanted
computer(You may get more information about the typing format through the
"examples" linkbutton)
After typing, you may click "Check Names" button to check if the computer
name is valid.

Anyway, I will wait you back and your feedback a week later.

Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top