Solved

command won't run from my logon script

Posted on 2006-10-25
8
171 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

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…
Adults who share images on social media aren’t the only ones who need to worry about their privacy. Our culture’s tendency to share every move and celebration affects the privacy of our children, too.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

735 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