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
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" wrote in message news:evJLgpP1HHA.4476@TK2MSFTNGP06.phx.gbl... > 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 >