DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Thu, 2 Aug 2007 12:43:40 +0100,    posted on: microsoft.public.dotnet.security        back       

Thread Index
  1    glennanthonyb
          2    Joe Kaplan


Impersonation - connecting to a machine in it's own workgroup   
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
Date:Thu, 2 Aug 2007 12:43:40 +0100   Author:  

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"  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
> 
Date:Fri, 3 Aug 2007 10:48:15 -0500   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us