Hi everybody, I am trying to use ServiceController class to start/stop/restart/query services that are on Windows 2003 servers which are not in the domain. I can use ServiceController on my local computer or computers that i entered their usernames and passwords while using file sharing. (with username password dialog when pops out you tried to access a computer's file sharing, or like other procedures.)
But I can't make it run on not-in-domain servers. I get an InvalidOperationException which is like that: "Cannot open Service Control Manager on computer 'XX.YY.ZZ.TT'. This operation might require other privileges.". I tried to use WindowsIdentity.Impersonate method but it didn't work. Can anyone tell me how can i make this thing run? Have a nice day. ~~~~~~~~~~~~~~~~~~~~~~~~ Harun Yiğit Legoz [HyundaiAssan - Senior Software Developer] [MCTS: .NET Framework 3.5, ASP.NET Applications] [B : http://www.hylegoz.net] [B : http://hylegoz.spaces.live.com] [L : http://www.linkedin.com/in/hylegoz] [F : http://www.facebook.com/hylegoz] [T : http://twitter.com/hylegoz] Ogden Nash <http://www.brainyquote.com/quotes/authors/o/ogden_nash.html> - "The trouble with a kitten is that when it grows up, it's always a cat."
