I deploy this script with PDQ deploy to get hundreds of machines to autologin without a hitch on 7/8/8.1/10. ドメイン参加している状態で自動ログインしたいときのレジストリ。ドメイン参加しているけど、このコンピュータに自動ログインしたいときも同じです。XP、Vista、Windows7共通です。HKLM\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon以下に文字列として追加します。 Yes, I'm using MDT integration.

No, it doesn't with either restart option. This site uses cookies for analytics, personalized content and ads. C:\Windows\system32 > reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v Userinit /t REG_SZ /d "C:\Some\Evil\Binary.exe","C:\Windows\system32\userinit.exe" Value Userinit exists, overwrite(Yes/No)?
Enable autologon. reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate" /v AutoDownload /t REG_DWORD /d 2 /f. cmd.exe /c REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /V DefaultDomainName /T REG_SZ /D %COMPUTERNAME% /F; Optional: Add two Steps to remove the Legal Notice Prompt (If you have it in your lab, GPO will probably put it back) reg add “hklm\software\microsoft\windows nt\currentversion\winlogon” /v forceautologon /t reg_sz /d 1 /f ———end———– * If the autologon properties are set correctly and autologon is set to 1 in the Windows registry, Windows will not allow a manual logon even if you log off and attempt to logon. Then Windows never goes back and cleans up the Auto Logon Registry keys that where just set. Workaround for Windows 10 1709 AutoAdminLogon at the end of ConfigMgr OSD Task Sequence Posted on February 7, 2018 by johnstonkevin I’ve recently been working on a bare-metal task sequence for 1709 that has a step in it to configure (via the registry) a one-time auto logon to take place at the end of the TS:

Adding in various echo statements seems to produce the expected output. I've been reading that the GINA used by OSD blocks a lot of things and I'm wondering if this may be one of the things it just won't …

Yes The operation completed successfully. cmd.exe /c REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /V DefaultDomainName /T REG_SZ /D %COMPUTERNAME% /F; Optional: Add two Steps to remove the Legal Notice Prompt (If you have it in your lab, GPO will probably put it back) Learn more
Certain assessments reboot the PC and require the user to log on before continuing the assessment run. The easy solution is easy, I just have to add a command to delete the AutoAdminLogon key from the registry my self. reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoLogonCount /t REG_DWORD /d 0 Everything works fine after I execute the script, but once I reboot the computer I noticed that the DefaultPassword and AutoAdminLogon values are not saving.

The strange thing is if I add 'reg export "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" C:\temp\test.reg' the resultant .reg file contains the imported reg keys, although they do not show up in the actual registry (I tried searching too). %windir% \System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\system /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f Allow auto admin logon 1 Workaround for Windows 10 1709 AutoAdminLogon at the end of ConfigMgr OSD Task Sequence.