• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 265
  • Last Modified:

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

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.
  • 2
1 Solution
Joseph TshiteyaCommented:
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).
newroccindyAuthor Commented:
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)
Joseph TshiteyaCommented:
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?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now