Logon Script GPO

A

Al

Hey everyone,

I'm stumped on what should be a trivial configuration. Currently, we
have a GPO logon script that runs 4 batch files when users log on. The
GPO has these 4 items:

%logonserver%\netlogon\batch1.bat
%logonserver%\netlogon\batch2.bat
%logonserver%\netlogon\batch3.bat
%logonserver%\netlogon\batch4.bat

This has worked well for years. I recently created a batch file called
logon_scripts.bat which has 4 commands in it:

call "%logonserver%\netlogon\batch1.bat"
call "%logonserver%\netlogon\batch2.bat"
call "%logonserver%\netlogon\batch3.bat"
call "%logonserver%\netlogon\batch4.bat"

and I changed the GPO so it only calls this 1 batch, which should
execute the regular 4. Now, the GPO looks like this:

%logonserver%\netlogon\logon_scripts.bat

This way, we can add/modify the startup scripts without modifying the
GPO. The new batch file is located in the same folder as the other 4.

My problem is, the 4 batches don't get run. It's not a permissions
issue since the file is located in the same place as the other 4. I
don't see anything in the event logs of the user PCs. I can't find any
information regarding limitations of batch files calling other batch
files as a GPO logon Script. Anyone have any ideas? Thanks.

Al
 
A

Al

Update:

I tried using a simple vbscript file to run the 4 batch files, and
this works just fine. Why would a vbs file work and not a batch file?

Al
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top