Networking Forums

Networking Forums > Computer Networking > Windows Networking > Asynchronous logon script environment

Reply
Thread Tools Display Modes

Asynchronous logon script environment

 
 
Tom Del Rosso
Guest
Posts: n/a

 
      12-19-2005, 08:22 PM
If synchronous logon scripts run before environment variables are set,
asynchronous logon scripts aren't guaranteed to run after the environment
is set up either, right? So it would seem that a script should loop until
it sees values applied to the required variables. I don't think I've seen
this done though. Is it good practice?


--

Reply in group, but if emailing add
1 more underscore and remove the last word.


 
Reply With Quote
 
 
 
 
Pegasus \(MVP\)
Guest
Posts: n/a

 
      12-20-2005, 12:29 AM

"Tom Del Rosso" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> If synchronous logon scripts run before environment variables are set,
> asynchronous logon scripts aren't guaranteed to run after the environment
> is set up either, right? So it would seem that a script should loop until
> it sees values applied to the required variables. I don't think I've seen
> this done though. Is it good practice?
>
>
> --
>
> Reply in group, but if emailing add
> 1 more underscore and remove the last word.
>
>


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


 
Reply With Quote
 
Tom Del Rosso
Guest
Posts: n/a

 
      12-20-2005, 12:07 PM
"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."


--

Reply in group, but if emailing add
1 more underscore and remove the last word.


 
Reply With Quote
 
Pegasus \(MVP\)
Guest
Posts: n/a

 
      12-20-2005, 08:04 PM

"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.


 
Reply With Quote
 
Tom Del Rosso
Guest
Posts: n/a

 
      12-21-2005, 05:49 AM
"Pegasus (MVP)" <(E-Mail Removed)> wrote in message
news:OSi$(E-Mail Removed)...
>
> 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.


Then what can be said of the execution sequence when it's synchronous, or
not? Is it correct that 2k and XP have opposite defaults on this?


--

Reply in group, but if emailing add another
underscore and remove the last word.


 
Reply With Quote
 
Pegasus \(MVP\)
Guest
Posts: n/a

 
      12-21-2005, 06:16 AM

"Tom Del Rosso" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> "Pegasus (MVP)" <(E-Mail Removed)> wrote in message
> news:OSi$(E-Mail Removed)...
> >
> > 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.

>
> Then what can be said of the execution sequence when it's synchronous, or
> not? Is it correct that 2k and XP have opposite defaults on this?


The essence of synchronous vs. sequential execution is that with
sequential execution, the desktop becomes available only AFTER
the logon script has finished. With synchronous execution it
becomes available WHILE the logon script executes. The following
KB article gives you some information about the respective
defaults: http://support.microsoft.com/kb/q305293/


 
Reply With Quote
 
Tom Del Rosso
Guest
Posts: n/a

 
      12-21-2005, 06:30 AM
"Pegasus (MVP)" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> The essence of synchronous vs. sequential execution is that with
> sequential execution, the desktop becomes available only AFTER
> the logon script has finished. With synchronous execution it
> becomes available WHILE the logon script executes. The following
> KB article gives you some information about the respective
> defaults: http://support.microsoft.com/kb/q305293/


Aha, then by "synchronous" they mean concurrent or simultaneous. That's
very different from what I thought, because of the choice of words. To me,
"synchronous" implies that execution occurs in a controlled sequence based
on dependencies. Thank you.


--

Reply in group, but if emailing add another
underscore and remove the last word.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
logon script for gpo Joe Windows Networking 1 10-04-2004 05:51 PM
GP logon script Stuart Jeffrey Windows Networking 1 09-12-2004 08:31 PM
Logon script =?Utf-8?B?RGF2ZQ==?= Windows Networking 4 04-22-2004 11:56 PM
Logon Script Eddy Melsbach Windows Networking 2 02-18-2004 02:18 PM
Logon script Alan Crawford Windows Networking 0 12-26-2003 10:45 PM



1 2 3 4 5 6 7 8 9 10 11