Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am a programmer , I don know the server well.

I made a simple program checking the service on the remote server is started or not. by using this(

but the permission should be set. and I can't find any document via the internet. except one document.

but the engineer say that 'tell me exactly what I do. there are many DCOM

are they any nice document to show him?

thanks in advance

share|improve this question
what exactly is the error message? – tony roth May 14 '10 at 2:43

I can't tell you if the programming is correct. I can tell you that you should be able to check permissions by running a vbscript or powershell script using the same user as your application. if you don't know vbscript you can use the scriptomatic to write one for you. If you have powershell installed - that's easy

get-service -computer mytestcomputer

if either of those work I would look at your code

share|improve this answer
or if no powershell then wmic /node:servername process – tony roth May 14 '10 at 3:04
The reason I went with powershell and didn't use WMIC is because powershell uses the exact same classes he's referencing. WMIC is so "prepackaged", while I'm sure it could be used to diagnose a permissions problem, I'm afraid that it would autofix something like an impersonation problem. The syntax to check a service is wmic /node:servername service – Jim B May 14 '10 at 14:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.