G
Guest
Hello.
I need a VB.NET example of how to impersonate a user, and then determine if
that user is an "Administrator" under Windows 2000 Professional. The
following article discusses this but says the example code will not work
under Windows 2000 due to default security policy and tells how to bypass the
security setting. I do not want to bypass the security setting. How do I do
this in VB.NET? I did have code that was able to do this on the same
operating system, but in VB6. It also did not need to bypass the security
setting. However, I found it too difficult to port it to VB.NET.
Thanks
The article I was referring to is
http://msdn.microsoft.com/library/d...ipalwindowsimpersonationcontextclasstopic.asp
I need a VB.NET example of how to impersonate a user, and then determine if
that user is an "Administrator" under Windows 2000 Professional. The
following article discusses this but says the example code will not work
under Windows 2000 due to default security policy and tells how to bypass the
security setting. I do not want to bypass the security setting. How do I do
this in VB.NET? I did have code that was able to do this on the same
operating system, but in VB6. It also did not need to bypass the security
setting. However, I found it too difficult to port it to VB.NET.
Thanks
The article I was referring to is
http://msdn.microsoft.com/library/d...ipalwindowsimpersonationcontextclasstopic.asp