News, Product Information, and Tips
Check out our free utlities in the downloads section

How to setup a logon script on your Windows 2000/2003 Active Directory Network

by Steve Wiseman on May 10, 2006 · 1 comment

in Windows

We are still looking through our code to find the reason for the flaw in VNC 4 – we will keep you updated as we find more.

On to another question. It may be easy for some of you, but setting up a logon script in active directory is not always that simple. Lets walk through setting one up.

First, open “Active Directory Users and Computers” on the domain controller

Now right click on the user you want to have the logon script and select the properties menu.

A properties dialog like the one shown below will appear. Select the ‘Profile’ Tab

Here is the confusing part. If I just put any old batch file name in the logon script field, where does windows try to find it from?

Lets find out. First, type in this field ‘logon.bat’

Click OK.

Now, we need to find the folder where the server loads logon scripts. It follows this format:

\\(SERVERNAME)\sysvol\(DOMAIN NAME)\scripts

So, if my server was named DCServer1, and my domain was intelliadmin.com, we would browse to this path:

\\DCServer1\sysvol\intelliadmin.com\scripts

Now that we know where to put it, creating the script is easy. Just open up notepad, and write your batch file. For our test batch file we will put in a line that loads our profile generator for Microsoft Outlook XP

We are done with the script, so we save the text file as:

\\DCServer1\sysvol\intelliadmin.com\scripts\logon.bat

Now, the next time this user logs in, they will load the login script.

Like this article? Then sign up for my newsletter to get free tips and software sent right to your inbox once a week. Like you, I hate spam – I will never spam, or sell your email address.

Related Articles:

{ 1 comment… read it below or add one }

1 Naw Aung December 1, 2009 at 5:21 am

How to write auto script log on in windows 2003 server

If you have any idea please help me

Leave a Comment

t