Jump to content

Auto Log on to Domain?


Recommended Posts

I am creating an unattended install of windows, and applications. The applications are all stored on a server that is part of our domain. The only thing that is keeping my install from being completly unattended is fact that I have to log in to the domain after windows is installed before the apps can be installed form RunOnceEx. Any ideas on how to bypass the domain login just once :crazy:

Thanks much

Link to comment
Share on other sites


I know, regardless of logging onto a domain or the local box, we have been unable to get our unattended installs to auto-login since Windows XP Service Pack. The first unattended we created that incorporated SP2 just beeped at us about a bad username/password. Once we typed in the password, the RunOnce stuff triggered just fine.

I know this isn't an answer, but at least it might help describe the issue as not specific to the fact that you're trying to log on to a domain. Perhaps another reader here has worked around the SP2 issue.

~Dave N.

Link to comment
Share on other sites

Try this: :thumbup

Run regedit from your run command.

navigate to [HKEY_LOCAL_MACHINE]\software\microsoft\windows nt\current version\winlogon

To enable it to automatically logon:

-Change value of "AutoAdminLogon" to 1

-if "AutoAdminLogon" isnt there, just click edit, new, stringvalue then name the new string value "AutoAdminLogon" and set the value to 1.

-Make sure the values "DefaultDomainName" and "DefaultUserName" are correct for your domain

-make sure the value of "DefaultPassword" is set to the correct password

-if "DefaultPassword" isnt there, click edit, new, stringvalue then name the new string value "DefaultPassword", and then enter the password that corresponds to the user

-if you want to bypass the ctrl-alt-del when you logon, open up "DisableCAD" and set the value to 1.

After you do this, it SHOULD ;) automatically log you in to your domain with the user name and password you entered in regedit. The only thing that I havent been able to figure out is how to bypass the domain welcome screen that makes you click "OK" to move on. :crazy: Any ideas on that????

Let me know if this works for you

Link to comment
Share on other sites

You will need to make sure you are specifying the domain in Winlogon.

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]

"AltDefaultDomainName"="DOMAIN"

"CachePrimaryDomain"="DOMAIN"

If that does not work change the username to the following;

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]

"DefaultUserName"="DOMAIN\Username"

Edited by snooz
Link to comment
Share on other sites

Thanks guys

I ended up using

REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon]
"DisableCAD"=dword:00000001
"AutoAdminLogon"="1"
"DefaultPassword"="******"
"DefaultDomainName"="CARS_NT_DOMAIN"
"DefaultUserName"="administrator"
"AltDefaultDomainName"="CARS_NT_DOMAIN"
"AltDefaultUserName"="administrator"
"CachePrimaryDomain"="CARS_NT_DOMAIN"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system]
"legalnoticecaption"=-
"legalnoticetext"=-
"disablecad"=dword:00000001

This took care of my logging on as well as bypassing intro message issues.

Thanks 4ur help :w00t:

Link to comment
Share on other sites

  • 3 weeks later...

@cheezus420

hey i want exactly reverse to what u said above abt enabling autologon.

after finishing of my unattended installation i want to disable autologon to admin account.i tried every thing ie

autologon count in winnt.sif

Changed value of "AutoAdminLogon" to 0

but non of them works.what to do

Link to comment
Share on other sites

quotee,

no, i got everything working. thanks though. I ended up just using a batch file containing the "net use" command. worked fine for what i needed :thumbup

bmn,

Do you mean logging in to the domain??? If so, Try running regedit and navigating to

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon]

then change the value of

"AutoAdminLogon"="1"

from 1 to 0

should work just fine, also you could probably remove the string value containing the password.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...