Microsoft Windows SMB Registry : Last Logged User Name Disclosure

This script is Copyright (C) 2003-2015 Tenable Network Security, Inc.

Synopsis :

It is possible to know last logged user name.

Description :

The registry key HKLM\Software\Microsoft\Windows
NT\WinLogon\DontDisplayLastUserName is not set to 1.

It means that users who attempt to log in locally will see the name of
the last user who logged in successfully in this computer on the

Solution :

Use regedt32 and set the value of this key to 1

Risk factor :


Family: Windows

Nessus Plugin ID: 11459 ()

Bugtraq ID:


Ready to Amp Up Your Nessus Experience?

Get Nessus Professional to scan unlimited IPs, run compliance checks & more

Buy Nessus Professional Now