Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
実際には、ウィンドウにログインしているユーザーを表示したいのですが、このパラメーターを記述してイントラネットで実行すると
WindowsIdentity.GetCurrent().Name;
それからそれは示します
NT AUTHORITY\IUSR
ユーザー名を表示したい。VB ソフトウェアを実行すると、ウィンドウのユーザー名が表示されます。
使用する必要がありますUser.Identity.Name:
User.Identity.Name
If User.Identity.IsAuthenticated Then Label1.Text = User.Identity.Name Else Label1.Text = "Anonymous user" End If