Windows 10 1709 Domain Autologon
Answers (5)
Comments:
-
Can the sysinternals autologin be disabled via command-line afterwards? I only want to use the autologin while the image is being provisioned - after that we hand it out to regular users so will need it to be disabled then. - onionst 6 years ago
-
Just make another script at the end to delete the registry key. - quickwhips 6 years ago
-
Tried it today - even running Autologing manually after fully imaging the laptop and having everything installed it still won't autologin.
I can see the registry keys it creates, but after rebooting it just goes back to the regular W10 login screen. - onionst 6 years ago
I have noticed that sometimes after a kace update to appliances or a windows update,
some scripts just stop working for no reason at all.
And sometimes just duplicating the script and renaming it just get its working again.
Weird I know....but try it.
But just in case ........ here is my autologon which works with my 1709 update.
Just change USERNAME and PASSWORD to work for you. Oh... and the autologon count to whatever you need.(Mine is 12).
Hope it helps......
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v DefaultLogonDomain /t REG_SZ /d %COMPUTERNAME% /f
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultUserName /d USERNAME /f
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultPassWord /d PASSWORD /f
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v AutoAdminLogon /d 1 /f
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v AutoLogonCount /t REG_DWORD /d 12 /f
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultDomainName /d %COMPUTERNAME%
Comments:
-
No luck with this either - I can see the registry keys being added, but after a reboot it just sits at the login screen. I've tried deleting and re-adding the scripts, and the install and it hasn't helped. - onionst 6 years ago
-
I am almost sure this is a credentials problem.
I think the problem is this......,
Prior to the "domain join" in the scripted install, the auto logon was logging in to the local computer account with local admin rights. BUT..
After joining the domain, windows login is looking for domain credentials, which is not the username and password in the bat script.
Make sure to change USERNAME to .........
(.\USERNAME)..........without the brackets.
This makes sure the script logs in to the local computer admin as it used to, instead of the domain.
So.... just add .\ to the username in the script. - akmagnum 6 years ago-
I've tried with all sets of credentials - a separate local admin user, a domain admin, no combination seems to work (set it manually after it's been imaged as well with no luck). I can see the AutoLogonCount reg key going down every time I reboot the laptop, but it will not auto-login no matter what I do.
Is there somewhere in Event Viewer I can check? - onionst 6 years ago
Comments:
-
This doesn't work for me, as soon as I set AutoLoginCount to 0 it deletes the DefaultPassword reg key... not sure how yours is working? - onionst 6 years ago
-
Did you try adding .\ to the local admin user? This is important !!!!
Also how did you create the image. Did you use the "Sysprep creator tool" from Quest..... or did you use the windows version of sysprep?
I would recommend using the tool. It also has a autologon count function you can add to the answer file.
Maybe you should create a new image and try it.
Also try putting the "autologon" task in the kace just before the "domain join" task. - akmagnum 6 years ago-
Yep, tried with and without the .\.
I'm using a scripted installation with the K2000, so no need to Sysprep - I upload the boot environment and then the boot media and use an unattended.xml + post-installation tasks to install everything that I require.
I've got the autologon task before the domain join - doesn't matter where the task is, as soon as it joins the domain autologon breaks. - onionst 6 years ago -
I actually use images with my win10 deployment, so I don't seem to have the problem. But I tried to use a scripted install test deployment with the domain join and the autologon script in win10 ......and you are right , I get the same problem.
That's funny because, in the image with the same tasks of domain join and autologon there are no issues with re-logging in after a domain join.
will let you know if I find a solution. - akmagnum 6 years ago
Comments:
-
No luck with this either - I did notice that when I didn't put the value types in it seemed to pick the right one (REG_SZ) by default. Thanks though! - onionst 6 years ago
Top Answer
<settings pass="oobeSystem">
<OOBE>
<SkipMachineOOBE>true</SkipMachineOOBE>
</OOBE>
and my auto logins worked as expected. I have 2 Auto Logins in my Sysprep file
I also noticed that after the machine joins the domain and reboots, it creates another user account for the local account that auto logs in. To correct that, after my join domain vbs script ( no reboot), I added a batch file to remove the DefaultDomain key created when the computer joins the domain with a reboot.
reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultDomainName /f - Bethski 6 years ago
When you say after the machine joins the domain and reboots - what is the "another user account for the local account"? I have a user that is added during my Unattend.xml that gets set with a non-expiring password as a local administrator (so we can have admin access to machines that are away from the domain network if required). - onionst 6 years ago