Run/RunOnce Behavoir

From what I've seen, if a login script maps drives, a program run from the Run or RunOnce keys does not see these drives. (different from NT/2k behavoir).
Tossing a test program in the Run key that times how long it takes until a mapped drive is avail it seems to take about 9-10 seconds AFTER the run key is run.
The login script program sees the mapped drive fine.

Does anyone know of a reg setting to make the Run keys exhibit their previous behavoir?
Who is Participating?
CrazyOneConnect With a Mentor Commented:
See if this helps
Go to
Start > Run type in


migrate Local Comp Policy > Computrer Configuration > Admistrative Template > System > Logon

And see if using the "Run logon Scripts synchronously" policy does anything for your problem.
If you run if for the HKEY_LOCAL_MACHINE key then it will run before the logon

Running from HKEY_CURRENT_USER will run it aftrer logon.

The Crazy One
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

mschechAuthor Commented:
checking it out...
mschechAuthor Commented:
Nope. Sometimes HKLM/RunOnce runs before the login, sometimes after. Different methods of doing the mapping give different time delays. (NET USE from logon script vs WSH vs API call.) using NET USE seems to at least make the
HKCU/Run keys wait.
But i need to run at RUN ONCE time, with my drive mappings.
(I have to register a shell extension and do other work before the shell comes up)
mschechAuthor Commented:
What we eventually found was that both the computer AND user policies need all the   various settings set correctly (login script synch, wait for network, and 1 other I cant remember at this time)
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.

All Courses

From novice to tech pro — start learning today.