Windows 2003 Terminal Services Logon Script / Application Issue

Posted on 2006-04-03
Last Modified: 2011-10-03
I am trying to setup a 2003 Terminal Server.  I want the sessions to launch a program upon logon, however, the application depends on mapped drives.  The application launches before the computer can finish mapping the drives and causes an error.

Is there any way to slow the application launch after login part down, or is there another way around this?
Question by:coxcomputer

    Author Comment

    Forgot to mention, the mapped drives are coming from a script that is launched domain wide upon user login.
    LVL 48

    Expert Comment

    Hi coxcomputer,

    im fairly sure that if you can put the application in the startup folder rather than in the script, that SHOULD solve your problem - if not can you alter your script to make it "not run until...."

    LVL 15

    Accepted Solution

    Set the Group Policy setting to run logon scripts synchronously, and put the drive mappings in \Windows\System32\USRLOGN1.CMD (create it if it's not there. It's called by Usrlogon.cmd)

    The Group Policy options is in User Configuration - Administrative Templates\System\Scripts

    If you apply this to an OU containing the server, you'll also need to set "User Group Policy loopback processing mode" to "Merge" or "Replace", which is in Computer Configuration - Administrative Templates\System\Group Policy

    Author Comment

    I changed the Group Policy options for the Domain as a whole, now the script runs properly before the application is launched.  Thanks Darwinian.

    Featured Post

    Live: Real-Time Solutions, Start Here

    Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

    Join & Write a Comment

    Organizations create, modify, and maintain huge amounts of data to help their businesses earn money and generally function.  Typically every network user within an organization has a bit of disk space to store in process items and personal files.   …
    by Batuhan Cetin In this article I will be guiding through the process of removing a failed DC metadata from Active Directory (hereafter, AD) using the ntdsutil tool in a Windows Server 2003 environment. These steps are not necessary in a Win…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    745 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

    16 Experts available now in Live!

    Get 1:1 Help Now