User Log in script in group policy not working

Posted on 2005-05-13
Medium Priority
Last Modified: 2010-04-19
I am attempting to use a user log on script in group policy.

 Under User configuration - Windows settings - scripts - log on

I am trying to add some printers. However to test the working I have just added a simple .bat file. I have tried this with no more than an echo and text line in the batch file in order to see it on the screen, followed by a pause. I am not seeing it at all. I have been on the Microsoft site and checked all the requirements and to my knowledge I have set it correctly but to no avail. My client computer is Windowx XP and it is connected to my domain. The user is a domain user.
Help would be very much appreciated as I need to get a VBS script working to connect a complicated set of printer options at the computer level.
Question by:davidatgemini
LVL 18

Expert Comment

ID: 13995569
Are you applying the policy at the domain level? ou level?

If it is to an OU, make sure of course that the user objects are in the OU.  

Where are you storing your script at?

Make sure the policy is actually being applied to the workstations. From a command line on your client, you can run a gpresult.exe

This will show you what policies are and are not being applied.

For a little bit more information you can do a start - run- rsop.msc and that will show you all the individual settings which are being applied.

Accepted Solution

ajsaasta earned 750 total points
ID: 13996099
Did you set the path to the batch file as UNC path?

So when adding a batch file to GPO, you must take care that the file is run as:


and not as


Propably you have the batch file on the server, so when selecting the file dont browse for it locally (C:\WINDOWS\....) but through network (\\MyServer01\MyFileShare\batches\...)

When users log to workstations they will run the batch from the server, not locally.


Author Comment

ID: 13996222
Thank you for the swift repsonse.

 Policy is at OU level, although I have tried at domain level.

To narrow this down I have created an OU of printtest. It has a user and a computer in it.
User and computer configuration settings are not disabled.

Script stored:-


In GPresult.exe. It appears it is being run. Suspecting it is just not echoing batch files

In the  UK Weekend is here

Will continue Monday and update.

Have a nice weekend.



Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

So you have two Windows Servers and you have a directory/folder/files on one that you'd like to mirror to the other?  You don't really want to deal with DFS or a 3rd party solution like Doubletake. You can use Robocopy from the Windows Server 200…
by Batuhan Cetin Within the dynamic life of an IT administrator, we hold many information in our minds like user names, passwords, IDs, phone numbers, incomes, service tags, bills and the order from our wives to buy milk when coming back to home.…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Enter Foreign and Special Characters Enter characters you can't find on a keyboard using its ASCII code ... and learn how to make a handy reference for yourself using Excel ~ Use these codes in any Windows application! ... whether it is a Micr…

615 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