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: Fri, 27 Apr 2007 03:02:26 +0530,    posted on: microsoft.public.dotnet.myservices        back       

Thread Index
  1    SenthilVel
          2    Lee Gillie
                 3    Rahul


How to get the Logged in User name from windows service ?   
hi

My windows service is running under the LocalSystem account.
how do i get the Logged in User Name of the machine from a windows Service?

Thanks
Senthil
http://dotnetcrunch.blogspot.com/
Date:Fri, 27 Apr 2007 03:02:26 +0530   Author:  

Re: How to get the Logged in User name from windows service ?   
Which logged in user? You say "THE" like there could be only one! 
Consider remoted users, and terminal servers, etc.

SenthilVel wrote:

> hi
> 
> My windows service is running under the LocalSystem account.
> how do i get the Logged in User Name of the machine from a windows Service?
> 
> Thanks
> Senthil
> http://dotnetcrunch.blogspot.com/ 
> 
> 
Date:Mon, 07 May 2007 14:19:21 -0700   Author:  

Re: How to get the Logged in User name from windows service ?   
for example, 

Yes, this there could be - remoted users, and terminal servers(WTS) logged 
in uers.

the scenario is like this:

if the user has logged in to the server: "MyServerDom" with loginid 
"Administrator" then I want to display it as: "MyServerDom\Administrator" 
using the windows service.

"Lee Gillie" wrote:


> Which logged in user? You say "THE" like there could be only one! 
> Consider remoted users, and terminal servers, etc.
> 
> SenthilVel wrote:
> > hi
> > 
> > My windows service is running under the LocalSystem account.
> > how do i get the Logged in User Name of the machine from a windows Service?
> > 
> > Thanks
> > Senthil
> > http://dotnetcrunch.blogspot.com/ 
> > 
> > 
> 
Date:Tue, 24 Jul 2007 06:10:00 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


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