I'm hoping somebody can help me out with this.
Is it possible to impersonate the system account from a vb.net windows application? If so, how do you go about it?
Here's my situation. I inherited a home-grown desktop application, vb.net 1.1, that's loaded on about 70 w2k & XP Pro computers in 14 locations. I've been assigned the lovely job of adding some error handling so our MIS guys can get accurate info when there are problems. They asked if it could be in seperate event log to make remote management easier.
I have this working on my test system, the issue is creating the log on the live pc's. Basically when the rewritten error library is called it checks for the new log and creates it if needed. My problem is that you need local admin rights to create a log, and the people using this program absolutely do not have that kind of access.
What I'd like to do is impersonate the system account long enough to create & configure the log and then revert back to the user who logged on.
Does anybody have any ideas?
Thanks,
Pat