Re: Impersonation - connecting to a machine in it's own workgroup
- From: "Joe Kaplan" <joseph.e.kaplan@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 3 Aug 2007 10:48:15 -0500
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
.
- References:
- Impersonation - connecting to a machine in it's own workgroup
- From: glennanthonyb
- Impersonation - connecting to a machine in it's own workgroup
- Prev by Date: Impersonation - connecting to a machine in it's own workgroup
- Next by Date: Best approach for downloading .zip files in dot net?
- Previous by thread: Impersonation - connecting to a machine in it's own workgroup
- Next by thread: Best approach for downloading .zip files in dot net?
- Index(es):
Relevant Pages
|