Changing Windows 7 default user on bootup

10

4

Since I installed ShrewSoft VPN it defaults to the user when I boot up instead of my local user. I'm not a fan of this since it's only rarely used and I would like for my admin account to be the default user. Is there a setting or registry setting I can modify to put my local admin account back as the default user when my computer boots up?

Webnet

Posted 2011-12-17T14:29:51.887

Reputation: 960

Answers

9

it is ultimately controlled by registry but you dont need to go this far, there's a nice handy tick box you can change (and then provide default logon credentials)

Press windows & R for run box

type "netplwiz" or "control userpasswords2" - either will work fine

Untick "Users must enter a user name and password to use this computer."

You will then be prompted to enter default login details, just OK this box unless you have a password in which case type this in, then apply and restart, PC will Auto-login.

David Craig

Posted 2011-12-17T14:29:51.887

Reputation: 407

Please note that this method doesn't work for Windows 7 computers in a domain environment. For that, see @Craig Silver's answer.

– GuitarPicker – 2016-12-05T13:42:43.577

If you've already done this, but have added a different user and want it to be the default, just re-tick, logoff, logon as the user you want defaulted, and repeat the above process. That will set the default user to a different user. – xanadont – 2013-10-15T15:59:21.387

5

I found that it was this:

HKLM\Software\Microsoft\Windows\CurrentVersion\Authentication\LogonUI

LastLoggedOnSAMUser = Computername\username (or domainname\username for a domain account)

LastLoggedOnUser = .\username (or domainname\username for a domain account)

Craig Silver

Posted 2011-12-17T14:29:51.887

Reputation: 97

2

Easier method:

Type cmd (in search), and right click RUN AS ADMINISTRATOR and execute these commands (just change User with your actual username, and WORKGROUP with your actual domain name):

reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /t REG_SZ /v DefaultDomainName /d WORKGROUP /f && reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /t REG_SZ /v DefaultUserName /d User /f


p.s.
/t means type
/v means key
/d means value
/f means overwrite

T.Todua

Posted 2011-12-17T14:29:51.887

Reputation: 2 436

2

This worked for me, went to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
and changed DefaultDomainName and DefaultUserName values to the desired string data.
Additionally for auto-login it needs to be set (create it if it does not exist) the DefaultPassword value with the user password as string and also the string value AutoAdminLogon should be set to 1.

dim-d

Posted 2011-12-17T14:29:51.887

Reputation: 21

0

For CMD in Windows 7, run this 3 lines:

Modify domain to yout domain, and username to your username.

reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Authentication\LogonUI" /t REG_SZ /v LastLoggedOnProvider /d "" /f 
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Authentication\LogonUI" /t REG_SZ /v LastLoggedOnUser /d "domain\username" /f 
reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Authentication\LogonUI" /t REG_SZ /v LastLoggedOnSAMUser /d "domain\username" /f 

Sergio Cabral

Posted 2011-12-17T14:29:51.887

Reputation: 189