#150473 - 2005-10-24 06:20 PM
Re: Domain / Local Login
|
Shawn
Administrator
   
Registered: 1999-08-13
Posts: 8611
|
How about:
Code:
If "\\"+@WKSTA = "%LOGONSERVER%" ?"Logging in with cached credentials..." Endif
|
|
Top
|
|
|
|
#150475 - 2005-10-24 06:43 PM
Re: Domain / Local Login
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
The easy way for me is that the logon script which is domain based does not run when logging in using cached credentials. Are you saying that your script executes when logging in with cached credentials?
|
|
Top
|
|
|
|
#150477 - 2005-10-24 07:09 PM
Re: Domain / Local Login
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11634
Loc: Space
|
Quote:
Are you saying that your script executes when logging in with cached credentials?
It's a new MAGIC Trick 
You'll have to forgive our venerable Shawn as he is a programmer type, not a Network type
|
|
Top
|
|
|
|
#150486 - 2005-10-25 03:27 AM
Re: Domain / Local Login
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Yes Shawn it does. I agree 101%.
I take exception to the term "Logon Script" when it is executed from the startup folder and not as part of the logon process. If this was the case it woulf be a script of some other type other than "logon".
|
|
Top
|
|
|
|
#150488 - 2005-10-25 04:24 AM
Re: Domain / Local Login
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11634
Loc: Space
|
I agree you're off your rocker.
|
|
Top
|
|
|
|
#150489 - 2005-11-08 04:37 PM
Re: Domain / Local Login
|
cyri
Getting the hang of it
Registered: 2005-06-27
Posts: 95
|
I work with Gargoyle (one of the desktop guys that think it's caching the scripts locally). It's not actually caching the scripts locally, but it's caching (in the profile) that I need to run the scripts. I have verified this on my laptop when I logged in using cached credentials at home. Currently we're doing a deployment via a computer startup script so the max time to run scripts is set to 45min.
That means when I log in using cached credentials, it takes almost 45min to logoff the laptop. Because it is caching the fact that it needs to run the logon/logoff scripts in the profile. But not actually caching the scripts themselves. Then, because your offline it can't find the scripts. So you have to wait for it to timeout. Which like I said above, is set to 45min.
Not very cool.
|
|
Top
|
|
|
|
#150490 - 2005-11-08 04:44 PM
Re: Domain / Local Login
|
cyri
Getting the hang of it
Registered: 2005-06-27
Posts: 95
|
Just so you don't think I'm nuts, here is the registry location where it caches the fact that it needs to run the script (not the scripts themselves).
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System\Scripts\Logon\0\0] "Script"="Kix32.exe" "Parameters"="Logon.kix"
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System\Scripts\Logoff\0\0] "Script"="Kix32.exe" "Parameters"="Logoff.kix"
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(mole)
and 1300 anonymous users online.
|
|
|