I've written a windows service in C#.
The service copies certain files using a FileSystemWatch er.
However, where it copies the files to is a windows share (\\ipaddress
\sharename).
If I set the service up and run it as a user who has access to this
share -
Services Service Name Log On As etc,etc
it copies the files.
If I leave the default settings, the copy does not take place.
How do I impersonate a user who has access to the network share from
with in the service?
The service copies certain files using a FileSystemWatch er.
However, where it copies the files to is a windows share (\\ipaddress
\sharename).
If I set the service up and run it as a user who has access to this
share -
Services Service Name Log On As etc,etc
it copies the files.
If I leave the default settings, the copy does not take place.
How do I impersonate a user who has access to the network share from
with in the service?
Comment