How to Determine the Currently Logged on User with Windows NT 4.0 and Windows 2000 (156694)



The information in this article applies to:

  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Datacenter Server
  • Microsoft Windows 2000 Professional
  • Microsoft Windows 2000 Server
  • Microsoft Windows NT Server 4.0
  • Microsoft Windows NT Workstation 4.0

This article was previously published under Q156694

SUMMARY

In Windows NT Server version 3.x, 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 domainname\username.

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 Username and Logonserver.

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

Modification Type:MajorLast Reviewed:6/3/2003
Keywords:kbenv kbhowto KB156694