Solved

Run/RunOnce Behavoir

Posted on 2002-03-12
7
841 Views
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?
0
Comment
Question by:mschech
  • 3
  • 3
7 Comments
 
LVL 44

Expert Comment

by:CrazyOne
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
0
 
LVL 41

Expert Comment

by:stevenlewis
ID: 6858829
ping
0
 
LVL 44

Expert Comment

by:CrazyOne
ID: 6859030
pong
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 1

Author Comment

by:mschech
ID: 6860473
checking it out...
0
 
LVL 1

Author Comment

by:mschech
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)
0
 
LVL 44

Accepted Solution

by:
CrazyOne earned 200 total points
ID: 6877340
See if this helps
Go to
Start > Run type in

gpedit.msc

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.
0
 
LVL 1

Author Comment

by:mschech
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)
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

We have adopted the strategy to use Computers in Student Labs as the bulletin boards. The same target can be achieved by using a Login Notice feature in Group policy but it’s not as attractive as graphical wallpapers with message which grabs the att…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

860 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