Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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(http://msdn.microsoft.com/en-us/library/dwd0y33x(v=VS.90).aspx)

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

http://msdn.microsoft.com/en-us/library/aa393266(VS.85).aspx

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.