Share via


DontDisplayLastUserName registry key and GPO setting no longer stopping the Last User Logon from being removed

Question

Thursday, February 7, 2019 7:14 PM

We have a GPO setup to remove the Last logged on username and it was working perfectly for a long time and then some time a few months ago it stopped working. After trouble shooing the problem I discovered that the GPO is technically still doing what it is supposed to do. if I go out to the registry and look at the keys:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\dontdisplaylastusername

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\dontdisplayusername

they are both set to 1 - Enabled. And if I change them to 0 and run a gpupdate /force they immediately go back to a 1 like they are supposed to. It's like there is something that has been set to bypass or override this setting and I cannot find it. I am out of ideas, any help would be greatly appreciated.

All replies (6)

Wednesday, February 13, 2019 3:14 PM

Update - I was able to track down the Registry entry that the Username is being read:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\Credential Providers\8FD7E19C-3BF7-489B-A72C-846AB3678C96}\SessionData\1\UserNameHintWhich means the logon field is pul;ling the username from my smartcard session data which makes sense since that our normal logon. But I just can't find any information on why the GPO is now being bypassed.


Thursday, February 14, 2019 4:32 PM

Hi,

I wonder to know that how many machines are affected? Does the dontdisplaylastusername setting on all machines not work?

Best Regards,

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].


Monday, February 18, 2019 1:27 PM

It is a network wide issue with all workstations and yes the gpo and the registry setting are working and set.


Wednesday, June 12, 2019 7:12 PM

@martindaletn

Did you ever find a solution for this issue?

I'm having a similar issue within my environment.

- James


Wednesday, June 12, 2019 11:02 PM

could be your gpo is updating from one of the other computers when you turn it off un network them and see if when you turn that off if it stays
 off


Thursday, July 25, 2019 6:09 PM

We have a GPO setup to remove the Last logged on username and it was working perfectly for a long time and then some time a few months ago it stopped working. After trouble shooing the problem I discovered that the GPO is technically still doing what it is supposed to do. if I go out to the registry and look at the keys:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\dontdisplaylastusername

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\dontdisplayusername

they are both set to 1 - Enabled. And if I change them to 0 and run a gpupdate /force they immediately go back to a 1 like they are supposed to. It's like there is something that has been set to bypass or override this setting and I cannot find it. I am out of ideas, any help would be greatly appreciated.

I just fixed this issue on this thread and the fix - for me anyways - is to update your ADMX store to 1903.

Portland Public Schools / Systems Administrator II