Run/RunOnce Behavoir

Posted on 2002-03-12
Medium Priority
Last Modified: 2012-06-27
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?
Question by:mschech
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
  • 3
  • 3
LVL 44

Expert Comment

ID: 6858521
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
LVL 41

Expert Comment

ID: 6858829
LVL 44

Expert Comment

ID: 6859030
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI


Author Comment

ID: 6860473
checking it out...

Author Comment

ID: 6876748
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)
LVL 44

Accepted Solution

CrazyOne earned 600 total points
ID: 6877340
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.

Author Comment

ID: 6977088
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)

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

If you build your web application in Visual Studio you'll get at least a few binaries, or .DLL, files in your bin folder. However, there is more compiling to be done. Normally this would happen when an ASP.NET resource within the web site is request…
Ok I have been working on this for some time having learned and gained certification in XenDesktop 4 along came version 5 which was released last month. Since then I have been working to deploy XenDesktop 5 in a small environment with only 2 virt…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

770 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