Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
Private Sub cmdImpersonate_Click(ByVal sender As Object, ByVal e As System.EventArgs) Dim myPrincipal As WindowsPrincipal = DirectCast(System.Threading.Thread.CurrentPrincipal, WindowsPrincipal) Dim iuser As New ImpersonateUser(Me.Name.Text, Me.Domain.Text, Me.Pwd.Text) Me.theNewUser = iuser.ImpersonationContext myPrincipal = DirectCast(System.Threading.Thread.CurrentPrincipal, WindowsPrincipal) Dim swr As System.IO.StreamWriter = Nothing Try TextBox1.Text = System.Security.Principal.WindowsIdentity.GetCurrent().Name Catch eXP As Exception Response.Write(eXP.ToString()) Finally If swr IsNot Nothing Then swr.Close() End If End Try
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.