How to make logon scripts and deploy using group policy

Posted on 2004-04-20
Last Modified: 2012-08-14
I have a problem that was answered before and I have used the accepted answer and it doesn’t solve my problem.  I have posted the question and the answer below.
I followed these steps to the letter. And still the login script will not run.  I have verified the sytax of the script (I can run run it directly on the workstation) and I can also manually create the drive mapping without the need for authentication.
Can someone help

This was the original question

win2k environment, we need to modify our network net use mappings to create mappings.

example: net use g: \\servername\share

any idea?

This was the original answer

You should create the new Organizational Unit (OU), and then add the new batch file in the logon script with this OU. At last move all users into that OU who need to run that script. So those users can be mapping when they login each time by auto.


Active Directory Users and computer -->  right click of "Domain Controllers (new) ( Orgranizational Unit) --> type the new OU name -->

Right click of new OU --> properties --> Group Policy Tab --> New (Create new policy)

And then Press 'Edit' --> choice what's configuration you need ?? --> user configuration (as well) --> Windows settings --> Script(logon/logoff) --> logon --> create one batch file (net use g:\\servername\share) to add in there.
Question by:jimmymcintyre

Assisted Solution

pjimerson earned 250 total points
ID: 10872998
Any script that you put in the scripts folder will be run but you have to configure each users profile to run the script as well.

Browse to the PDC of your domain and drill down through the SYSVOL folder and the subfolder with same name as the dns name of your domain and look into the scripts folder you'll find there.  Your script should be there.  If it's not put it there.

Then enter Active Directory Users and Computers and configure each user profile that needs to run the script.  Put the name of the batch file in the Login Script field under the profile tab of the properties for each profile.

That'll do it.  

Good Luck,


Accepted Solution

kuchuuee earned 250 total points
ID: 10873080
Do you have a login script setup on you network already?

Did you place the login script in the correct location?

Have you tried running the script on one user account by going to the profile tab in the user's propertis page and entering the file name here? (no path data is neccesary here as long as the file is located in the scripts directory in the sysvol) I.E.  Login Script:  login.bat

Have you tried changing other things in the Group Policy to ensure that it is being applied correctly?  I.E. go to the group policy you setup for the new OU and add a favorite in
          User Configuration -> Internet Explorer Maintenance -> URLs -> Favorites and Links ->Add Link
             Then check to see if that user has the new favorite in their internet explorer

Post back with a reply so we can get it worked out.



Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Occasionally Windows/Microsoft Updates will fail to update. We have found a code that will delete all temporary files and re-register all dll's related to Windows/Microsoft Updates! This works 99% of the time to get the updates working again! The…
In a recent article here at Experts Exchange (, I discussed my nine-month sandbox testing of the Windows 10 Technical Preview, specifically with respect to r…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now