#147975 - 2005-09-16 05:23 PM
Re: -F[:yyyy/mm/dd]
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
Quote:
Still, the notion of modifying every users' profile every time a group name changes...
True - if you are assigning the login script on each individual profile and calling it directly rather than with a wrapper batch / script it could be a large overhead.
Quote:
Maybe another SetOption as well for the built-in option.
You still have the problem of different people doing the scripting and group re-naming though.
|
|
Top
|
|
|
|
#147976 - 2005-09-16 05:44 PM
Re: -F[:yyyy/mm/dd]
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
A quick'n'dirty fix for login scripts which would do the same as "-F" but from within the script: Code:
Dim $sTokenCache Dim $sTokenAge $sTokenCache="HKCU\Software\KiXtart\TokenCache" $sTokenAge="2005/09/16" If ReadValue($sTokenCache,"Token Cache Last Check") <= @DATE $=DelKey($sTokenCache) EndIf $=WriteValue($sTokenCache,"Token Cache Last Check",@DATE,"REG_SZ")
You just need to update $sTokenAge whenever you need to force the cache to flush.
You could of course keep $sTokenAge in a parameter file rather than hard code in the script.
|
|
Top
|
|
|
|
Moderator: Lonkero, ShaneEP, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart
|
0 registered
and 414 anonymous users online.
|
|
|