"Tom Del Rosso" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> "Pegasus (MVP)" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> >
> > I would think that environmental variables are set up a long,
> > long time before the logon script runs, synchronous or
> > otherwise. If you want the script to loop then you have to code
> > this yourself, e.g. like so:
> >
> > :Loop
> > if not defined username goto Loop
>
> Then is this incorrect or did I misunderstand it? (From the very bottom
of
> this page
>
> http://www.oreilly.com/catalog/win20...pter/ch08.html
>
> "4. You can't run a logon script synchronously if it needs to interact
with
> the user's environment. Synchronous logon scripts will always finish prior
> to environment variables being set and prior to the user's profile being
> loaded."
This site is a well-respected site. However, I would like to see this
with my own eyes before I believe it, because it just does not
sound right. The phrase "finish prior" is certainly wrong: A script
can run for quite some time, and since it runs synchronously with
other things, it may finish well after the environmental variables
have been set.