cancel
Showing results for 
Search instead for 
Did you mean: 
tattoo
Pilgrim

auto login on windows 7

I have a script on the local computer that I run to autologin on windows 7 64bit,

cd C:\Windows\System32\
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /d Administrator /f
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /d snafu4u /f
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /d 1 /f
exit

I point to this script in my installer and it doesn't update the registry. I am logged into admin and have full rights. I've used this method on previous OS's, Vista and XP and it works fine. Why can I run it and it works but not from the installer?

Thanks,
Labels (1)
0 Kudos
2 Replies
pv7721
Flexera beginner

Re: auto login on windows 7

Is your Windows 7 installed under C:\Windows ?
0 Kudos
tattoo
Pilgrim

Re: auto login on windows 7

I ended up using "Set Windows Registry" with the 64 bit registry checkbox and it worked.

I am still curious why I can run the script on the computer and it works but when I run it from my installer it doesn't update the registry.

thanks for the reply pv7721
0 Kudos