Only machines not in the domain you say?

Are they in another domain that may have group policies affecting your
effort? Or local security policies affecting your effort?

What credentials do you know explicitly work, locally on the target
machines? Have you verified what credentials are being passed --
.Impersonate aside, sniff the wire and make sure you don't have some
other credentials superseding your impersonation.

∞ Andy Badera
∞ +1 518-641-1280
∞ This email is: [ ] bloggable [x] ask first [ ] private
∞ Google me: http://www.google.com/search?q=andrew%20badera



On Wed, Sep 30, 2009 at 6:26 AM, Harun Yigit LEGOZ <[email protected]> wrote:
> 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  - "The trouble with a kitten is that when it grows up, it's
> always a cat."

Reply via email to