Solved

order of login script & startup folder

Posted on 2004-10-27
202 Views
Last Modified: 2010-07-27
Dear Experts,
Does anyone know something about the execution order of an AD login script and shortcuts/programs in the startup folder?
We have a login script, which does a 'net use * /D /Y' in order to remove any existing drive mappings. It then does some drive mappings for the user's home dir etc. etc..
In addition to this, I wanted one particular computer to do a drive mapping of its own. I thought it was as simple as putting a batch file in the startup folder of this particular user's profile on this particular machine. However, as the user logs in, the startup-script apparently executes before the login script, resulting in the login script deleting the newly made drive mapping.

Any suggestions on doing this in a more beautiful way than adding a sleep-command in the startup script?

Also, any info on the execution order of startup vs login script would be highly appreciated.

Thank you!
0
Question by:nyholmg
    1 Comment
     
    LVL 1

    Accepted Solution

    by:
    As opposed to deleting all drive mappings, you could remove them individually like this:

    REM Remove H: mapping
    NET USE H: /DELETE >nul

    REM Map H: to users share
    NET USE H: \\Vader\Users /YES >nul

    I am not sure of the startup order, but I do know if you run your login script through group policy, it tends to run near the end.
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone. Privacy Policy Terms of Use

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    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…
    This story has been written with permission from the scammed victim, a valued client of mine – identity protected by request.
    This video Micro Tutorial is the first in a two-part series that shows how to create and use custom scanning profiles in Nuance's PaperPort 14.5 (http://www.experts-exchange.com/articles/17490/). But the ability to create custom scanning profiles al…
    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…

    875 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

    13 Experts available now in Live!

    Get 1:1 Help Now