Windows Server 2008 Auto Login Script?

Posted on 2009-04-11
Medium Priority
Last Modified: 2012-05-06


  I am pretty new to Windows Server 2008, I have a need to have a Windows Server 2008 Web Edition machine on a domain automatically login to a certain account on bootup. I've heard that in older versions of server you could do it using a vb script? Could someone tell me if there is an easy way to do this and how to go about it? If it is using a vb script how would I implement that script to take effect on every boot up?

Question by:JReacher
  • 3
  • 2
LVL 59

Accepted Solution

Darius Ghassem earned 2000 total points
ID: 24123313
Here are some article to show you how to do it.


Author Comment

ID: 24123387
Thanks, This article doesn't say that it applies to Server 2008. Can anyone confirm/deny that it works for Server 2008?
LVL 59

Expert Comment

by:Darius Ghassem
ID: 24124071
This does work for 2008 I have used it for it. Here are some more articles. I have used the first to make a 2008 server a workstation.


7 new features that'll make your work life better

It’s our mission to create a product that solves the huge challenges you face at work every day. In case you missed it, here are 7 delightful things we've added recently to monday to make it even more awesome.


Author Comment

ID: 24125067
Ok I am going to try this today. Also, this machine is on a domain and the account I want to auto login to is the local admin account. Is there a way to specifiy whether you are logging into a domain or local account?
LVL 59

Expert Comment

by:Darius Ghassem
ID: 24126360
I have done it with a local account but the machine wasn't on the domain. Also, I have done it with a domain machine but with a domain account.
LVL 58

Expert Comment

ID: 24128399

You cannot use a VBScript directly to do the auto-logon. The only way a VBScript could run would be as a Startup script, which runs prior to the login prompt.

The approach dariusg linked to is the correct approach to follow. Simply add the necessary registry entries. For it being a domain account, you simply need to add the additional string value in the Winlogon key, called 'DefaultDomainName', and specify the NetBIOS name of your domain as the value. That will allow an automated domain logon to take place.


Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
For anyone that has accidentally used newSID with Server 2008 R2 (like I did) and hasn't been able to get the server running again because you were unlucky (as I was) and had no backups - I was able to get things working by doing a Registry Hive rec…
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

600 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question