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

Remote Administration



Remote Administration For Windows. Easy remote access of Windows 7, XP, 2008, 2000, and Vista Computers

Click here to find out more

Create Outlook Profiles



No more setup wizards in Outlook. Setup Outlook Profiles automatically from the command line

Click here to find out more

Network Administrator



Reboot Hundreds of computers, disable flash drives, deploy power managements settings.

Click here to get your free copy of Network Administrator. Over 25 plugins to make your life easier

USB Disabler



Disable Flash Drives for specific users, or only allow specific drives.

Click here for your free trial

Search

Archives

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

by Steve Wiseman on May 10, 2006 · 5 comments

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:

{ 5 comments… read them 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

2 David January 5, 2011 at 4:57 pm

What do you need help with?

3 ken March 9, 2011 at 9:08 am

Thanks for explaining

just wondering how to display a notice when a user log on to network, and how to map network drive through script

4 mark February 8, 2012 at 3:17 pm

I believe I followed the post instructions exactly. My client machines have limited security/user rights/priveleges.

What security/user rights/priveleges must clients have to be able to use the logon script set in active directory?

My script is a .bat file, containing one line that maps a network drive:

“NET USE X: //server/share \USER:username passw”

but when I log on to client the drive isn’t mapped.

5 Steve Wiseman February 9, 2012 at 10:24 am

I don’t think there are any limits to who can have a login script. Make sure you are setting it up as a user group policy, and not a computer one…since those in the computer context are run as ‘system’ and ‘system’ cannot map network drives

Leave a Comment

Category Links - Windows Forum - Exchange Forum