MDT 2012: Application only TS Reboot Autologon problem RRS feed

  • Question

  • When the machine restarts it attempts to logon as Administrator but fails with a password error. Where do I tell it the password to use since there is no UNATTEND.XML?
    Monday, January 25, 2016 3:13 PM

All replies

  • I solved that little problem with a script that I imported as an "application". I have a TS that I like to use to install apps/patch apps/restore mig file.

    <job id="Set-AutoLogon">
    <script language="VBScript" src="..\..\scripts\ZTIUtility.vbs"/>
    <script language="VBScript">
    option explicit
    on error goto 0
    	oShell.RegWrite "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\AutoAdminLogon", 1, "REG_SZ"
    	oShell.RegWrite "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\AutoLogonCount", 999, "REG_SZ"
    	oShell.RegWrite "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultUserName", "Administrator", "REG_SZ"
    	oShell.RegWrite "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultDomainName", ".", "REG_SZ"
    	oShell.RegWrite "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultPassword", "PASSWORDGOESHERE", "REG_SZ"
    	wscript.sleep 3000

    If this post is helpful please vote it as Helpful or click Mark for answer.

    Monday, January 25, 2016 8:39 PM