Re: Impersonation - connecting to a machine in it's own workgroup



You might be able to hack up a solution to this by creating a local machine
account with the same name and password as an account on the remote machine
and impersonating the local account before attempting the RPC call to get
the service status.

You would be better off if you could get the remote machine in a domain so
you wouldn't have to resort to this type of hack.

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"glennanthonyb" <glenn.csharp@xxxxxxxxxxx> wrote in message
news:evJLgpP1HHA.4476@xxxxxxxxxxxxxxxxxxxxxxx
Hi

I'm trying to check the status of a service running on a machine in its
own workgroup.

Is there anyway of impersonating a user in the workgroup to allow the
ServiceController to connect and retrieve the state of the service?

The process performing the check sits in a domain and is running 2003.
The target machine is running NT.

Thanks

Glenn



.



Relevant Pages

  • Re: Trust relationship between this workstation and Primary Domain
    ... it, with a new computer ID, a new workgroup ID, but again to no avail. ... password policy, renamed admin account, automatic updates are controlled by ... * PLEASE post all messages and replies in the newsgroups ... "Workstation ...
    (microsoft.public.win2000.networking)
  • Re: how to connect puters via crossover cable!?
    ... it is a domain profile and when you moved it to a workgroup you ... your local account doesn't have the SID necessary ... >I tried to rename my computer (XP pro) and got an error ("Computer Name ... >hell I'm doing when it comes to networking, ...
    (microsoft.public.windowsxp.general)
  • Re: how to connect puters via crossover cable!?
    ... > it is a domain profile and when you moved it to a workgroup you ... your local account doesn't have the SID necessary ... >>hell I'm doing when it comes to networking, ... >>> to set up your user name for the Windows 2000 computer on the XP ...
    (microsoft.public.windowsxp.general)
  • Re: Local Policy Database - failed to save
    ... > workgroup - the domain doesn't show up. ... automatically visible in the network browser. ... > The account is not a domain account, ... >>> There is a domain controller in the network, ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Domain and workgroup coexisting on same network
    ... With win98se and winxp home there is no option to join the 'computer ... account' to the domain. ... user account then that workgroup user will be ... the 'server' that you mentioned - is it a Domain Controller? ...
    (microsoft.public.win2000.active_directory)