Microsoft KB Archive/156694

= How to Determine the Currently Logged on User with Windows NT 4.0 and Windows 2000 =

Article ID: 156694

Article Last Modified on 2/27/2007

-

APPLIES TO


 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Datacenter Server
 * Microsoft Windows 2000 Professional Edition
 * Microsoft Windows 2000 Server
 * Microsoft Windows NT Server 4.0 Standard Edition
 * Microsoft Windows NT Workstation 4.0 Developer Edition

-



This article was previously published under Q156694



SUMMARY
In Windows NT Server version 3. , you can use the title bar of Program Manager to determine the name of the currently logged-on user. This information is not immediately available in Windows NT Server 4.0, but you can obtain it by using one of the methods that are listed in the "More Information" section of this article.



MORE INFORMATION
To find the name of the user who is currently logged on user, use any of the following methods:

Method 1
Click Start, click Run, type Progman.exe, and then press ENTER.

The logged-on user appears in the title bar with the syntax of \.

Method 2
While logged on, press CTRL+ALT+DEL. The name of the currently logged-on user appears in the Logon Information section of the Windows NT Security dialog box.

Method 3
Note: This method does not apply to Windows 2000.


 * 1) Click Start, click Run, type Winmsd.exe, and then press ENTER.
 * 2) Click the Network tab. The current user and logon domain information appears. Winmsd.exe also indicates the domain controller that authenticated the client computer in the domain.

Method 4
Click Start, click Run, type cmd, and then type set. Look for the  and.

Note: The Resource Kit has a utility named Whoami.exe. If you run this tool, you receive the following output: %domainname%\%username%

Additional query words: prodnt

Keywords: kbenv kbhowto KB156694

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.