DefaultUserName and DefaultDomainName registry keys in Windows7

By Perry

I wrote here about my finding for DefaultUserName and DefaultDomainName registry keys in Windows7.

These registry keys exists at HKLM\SOFTWARE\Microsoft\\Windows NT\CurrentVersion\Winlogon\DefaultUserName on Windows Xp but doesn't seem to exist on Windows 7 when you use Windows 7 Enterprise x64 bit OS. We have not found this keys either in Wow64.

If you are trying to get these entries then you might want to try my other FAQ listed below where I used Win32_LogonSession to get these values. The WMI query needs admin privileges to find these values.

The best discussion can be found at http://www.experts-exchange.com/Programming/Languages/Q_26161500.html

Related FAQs

This shows the step to get rid of given warning message.
There is the difference in getting current logged on user on Windows Xp and Windows 7. This gives the method which works from current user context and doesn't need administrator privileges to get the current logged on user.
See http://www.eggheadcafe.com/sample-code/Windows7/e53b9d81-c025-4e41-a45c-f22214221c53/windows-7-uac-user-accou.aspx for UAC concept details. This shows how to disable it.
There is a change in security mode from Windows Xp to Windows 7. UAC is one of the changes.
DefaultUserName and DefaultDomainName registry keys in Windows7  (4359 Views)