Solved

Run/RunOnce Behavoir

Posted on 2002-03-12
7
840 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
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
windows explorer hangs on my computer after random time 18 76
Old version of iTunes download 4 122
Clone HDD in RAID1 10 130
Windows print sharing 1 71
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…
cPanel is a Unix based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site. cPanel utilizes a 3 tier structure that provides functionality for administrators, rese…
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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

785 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