Go Back   Velocity Reviews > Newsgroups > MCSD
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

MCSD - RE: Finding user that caused FileSystemWatcher event in Windows Servic

 
Thread Tools Search this Thread
Old 02-06-2007, 01:11 PM   #1
Default RE: Finding user that caused FileSystemWatcher event in Windows Servic


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
>
>
>



=?Utf-8?B?Sm9lbA==?=
  Reply With Quote
Old 02-06-2007, 09:08 PM   #2
Bob
 
Posts: n/a
Default Re: Finding user that caused FileSystemWatcher event in Windows Servic
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
>>
>>
>>





Bob
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Reset / Recover Forgotten Windows NT / 2000 / XP / 2003 Administrator Password wskaihd Software 2 11-17-2009 02:01 AM
How to activate Remote Assistance with XP using Windows Live Messenger Oziisr General Help Related Topics 0 02-01-2008 04:45 PM
Computer Security aldrich.chappel.com.use@gmail.com A+ Certification 0 11-27-2007 02:11 AM
MCITP: Enterprise Support Technician MileHighWelch MCITP 1 06-19-2007 10:25 PM
Re: Question about MS critical updates John Coode A+ Certification 0 06-30-2004 06:08 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

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