• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 852
  • Last Modified:

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?
0
mschech
Asked:
mschech
  • 3
  • 3
1 Solution
 
CrazyOneCommented:
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
 
stevenlewisCommented:
ping
0
 
CrazyOneCommented:
pong
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
mschechAuthor Commented:
checking it out...
0
 
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)
0
 
CrazyOneCommented:
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
 
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)
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now