Solved

command won't run from my logon script

Posted on 2006-10-25
8
166 Views
Last Modified: 2010-04-13
I created a Logon Script policy for an OU.  The script checks users' environment and call  a few batch files to update software/settings if needed.  The script ran perfectly OK from Windows Explorer.  However, it won't run the last batch file once I try it from the Logon Script policy.  Is there a limit on how many batch files can be nested and called from a logon script?   What is the best way to resovle this problem?  Thank you.



0
Comment
Question by:altonyoung
8 Comments
 
LVL 5

Expert Comment

by:Yogalingam
ID: 17808002
As of such there is no limits for adding scripts but if your script works fine. kindly try to readd the script files.
If you require some help on how to add the batch files/scripts to GP
http://www.serverwatch.com/tutorials/article.php/1474241
0
 
LVL 4

Expert Comment

by:eaperezh
ID: 17812831
Make sure that your batch file is not returning a screen or some for of output that you are not handling properly.

Also, make sure that the script/batch being executed is located in a place where the users can read it. If you run it interactively with your credentials, does it work? if you run it interactively with someone else's credentials (not a person with admin rights, that will spoil the fun) does it work?

0
 

Author Comment

by:altonyoung
ID: 17815835
Yogalingam,

I did try readding the script a few times.  Same result.

Eaperezh,

I ran the same script interactively as a regular user, not an administrator, it ran fine.  I only had trouble with the last line of code in a batch file that was called from the script.  There's nothing in my scirpt that would require user interaction.  

Any more ideas?   Thank you all for the support.  

 
0
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 
LVL 4

Expert Comment

by:eaperezh
ID: 17818973
when you say it wont run the last batch file, what is the difference with the previously called batch files? Do you re-initialize some variables as to not allow a mixup?
Is this batch being called the same way as the others?
0
 

Author Comment

by:altonyoung
ID: 17820088
I do not set or re-initialize any variables in my batch files.   Here is what I tried in the batch file:

Test 1:
Step 1.  run the program setup.exe
Step 2.  run update.exe for the program
Step 3.  run the batch file to set up user environment such as user defined views, registry keys, etc.

Test 2:
Step 1:  run the program setup.exe
Step 2: run the batch file to setup user envrionment
Step 3: run the update.exe for the program

In both tests, step 3 wouldn't run.  




 

0
 

Author Comment

by:altonyoung
ID: 17844501
I thought I would let you guys know what I found out:  I use sleep.exe in my batch file to wait for the previous process to finish before continue on to process the next command.  My original setting was to wait for 2.5 minutes.  Once I shorten the waiting time for sleep.exe to 1.5 minute, problem sovled.  Is there a time limit for logon scripts?   Thank you.  

0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 18309749
PAQed with points refunded (125)

Computer101
EE Admin
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
When you’re making plans to join the modern business race, you should analyze various details that may affect your results. Nowadays, millions of businesses are trying to grow into established and appreciated professional enterprises.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

816 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

8 Experts available now in Live!

Get 1:1 Help Now