Dear Ken,
Thanks for your speedy reply. I've checked out the article you sent me. The
code is pretty much the same code I've been using. The results are as they
should be: impersonation of the user is successful, however while
impersonating the user I don't have access to his/her files on the file
server...
Thanks again,
Sven
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:OO**************@TK2MSFTNGP09.phx.gbl...
Hi,
http://www.dotnet247.com/247referenc...28/144136.aspx
Ken
--------------
"Sven Eric" <sp********@hotmail.com> wrote in message
news:eV**************@TK2MSFTNGP15.phx.gbl... Hi All,
I try to use user-impersonation in VB.NET with a user (let's call him
Bill). I'm using the LogonUser function to create the token and so on.
This works --> calling WindowsIdentity.GetCurrent().Name() afterwards
gives me the username I'm try to impersonate. But this is about all I can
do, I don't have access to the users files on the network, for instance I
get an access denied error when I try to open a file on
\\our-fileserver\home\bill\documents .
What am I missing?
Thnx in advance.
Sven