How do I stop a login script from terminating too soon while a program it calls is still running in the background?

Posted on 2007-10-04
Medium Priority
Last Modified: 2013-12-23
We are in the process of re-mapping printers from a Novell Network to Active Directory.

Microsot Windows 2003 Login Script...

We are using the login script to map the user's printers based on the location of the computer they are logging into.

When the login script runs, it calls the program to map the printers, but then it continues on in the login script and terminates before the printer mapping is finished.

Which command can I use in the login script so that it won't terminate until the printers are finished mapping?  We don't want the user to have to click anything to close a dialog box.
Question by:newroccindy
  • 2

Expert Comment

by:Joseph Tshiteya
ID: 20016802
What are you using to script your login script, i.e. vbs?  If you're just using a standard .bat file, then you can enter the command pause followed by the amount of time you would like your script to wait before continuing to the next step (for example, pause 30).

Author Comment

ID: 20016930
The problem is we don't always know how long it will take.  It depends on the number of printers.  For some people we don't want them to have to wait  (or guess on the pause interval according to the longest possible time)

Accepted Solution

Joseph Tshiteya earned 375 total points
ID: 20017103
If there is no way to incorporate the printer mapping program into your login script so that the script will only run one step at a time, then why not map these printers through a group policy and using OU's to assign printers to users based on OU memberships?

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

We recently endured a series of broadcast storms that caused our ISP to shut us down for brief periods of time. After going through a multitude of tests, we determined that the issue was related to Intel NIC drivers on some new HP desktop computers …
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

809 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