Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

order of login script & startup folder

Posted on 2004-10-27
4
Medium Priority
?
206 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
Comment
Question by:nyholmg
[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
4 Comments
 
LVL 1

Accepted Solution

by:
tricep earned 500 total points
ID: 12422006
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

Featured Post

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

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…
If something goes wrong with Exchange, your IT resources are in trouble.All Exchange server migration processes are not designed to be identical and though migrating email from on-premises Exchange mailbox to Cloud’s Office 365 is relatively simple…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

610 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