Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computer Certification > MCSD > RE: Finding user that caused FileSystemWatcher event in Windows Servic

Reply
Thread Tools

RE: Finding user that caused FileSystemWatcher event in Windows Servic

 
 
=?Utf-8?B?Sm9lbA==?=
Guest
Posts: n/a
 
      02-06-2007
Hi

It seems to me that the developers of .NET overlooked this important
component of the FileSystemWatcher component control. I have tried to
retrieve this info as well without any luck. May be we need to recomment the
presence of this feature in .NET, and my the developers of .NET look into
that, because its no use to receive an event that a file is being deleted
while you cant determine who is/has deleted the file.

Joel

"CEP921" wrote:

> Hi All,
>
> I'm working on a Windows Service that uses FileSystemWatcher components
> to capture and log data when certain actions (such as files being
> deleted) take place in the file system. I am trying to figure out how
> to obtain the WindowsIdentity (User Name, Login, etc.) of the actual
> user that performed the action (for example, DOMAINNAME\CPoplawski
> deleted a file). Simply retrieving the WindowsIdentity within the
> service does not work, as it returns SYSTEM because the service runs
> under the Local System account. Is there any way, maybe similar to
> Impersonation in ASP.Net, to accomplish this?
>
>
> Regards,
>
>
> Chad Poplawski
>
>
>

 
Reply With Quote
 
 
 
 
Bob
Guest
Posts: n/a
 
      02-06-2007
Is this information available in the Secuurity logs? You might need to
enable the auditing of the file system to have the DELETE records appear
"Joel" <> wrote in message
news:873F5E98-10D2-4FC3-BF60-...
> Hi
>
> It seems to me that the developers of .NET overlooked this important
> component of the FileSystemWatcher component control. I have tried to
> retrieve this info as well without any luck. May be we need to recomment
> the
> presence of this feature in .NET, and my the developers of .NET look into
> that, because its no use to receive an event that a file is being deleted
> while you cant determine who is/has deleted the file.
>
> Joel
>
> "CEP921" wrote:
>
>> Hi All,
>>
>> I'm working on a Windows Service that uses FileSystemWatcher components
>> to capture and log data when certain actions (such as files being
>> deleted) take place in the file system. I am trying to figure out how
>> to obtain the WindowsIdentity (User Name, Login, etc.) of the actual
>> user that performed the action (for example, DOMAINNAME\CPoplawski
>> deleted a file). Simply retrieving the WindowsIdentity within the
>> service does not work, as it returns SYSTEM because the service runs
>> under the Local System account. Is there any way, maybe similar to
>> Impersonation in ASP.Net, to accomplish this?
>>
>>
>> Regards,
>>
>>
>> Chad Poplawski
>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in running a basic code in python 3.3.0 that includes HTML file Satabdi Mukherjee Python 1 04-04-2013 07:48 PM
Problem with create event of filesystemwatcher RaviNagam ASP .Net 1 04-11-2008 06:10 PM
Windows XP System Files Error when installing Servic Pack 2 Majongtore Computer Support 1 08-02-2007 11:26 PM
erquest for a servic/repair manual of a Nikon SQ Jan Digital Photography 0 08-01-2007 04:44 PM
Possible to add a Progress Bar to a Client consuming a slow Servic johnmann56 ASP .Net Web Services 2 06-17-2004 09:18 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57