If its cached the LogonServer environment variable is the local machine name. If logged on via a DC, the LogonServer environment variable is the server name. --BM
On Thu, Feb 5, 2009 at 9:04 AM, Stephen Wimberly <[email protected]> wrote: > I have a script that I want to run, but only when the user login was cached. > Is there a way to tell whether the current user login was cached or verified > by a domain controller? > > I _thought_ I'd use the %logonserver% variable, but apparently it shows the > domain controller that last authenticated the user even when the current > login was cached. > > Most scripts I've seen ping a server that is only available on the LAN and > look for the reply. In this case though I don't care if they are on LAN or > not, I care if they are cached or not. > > > I found a script that looks through the event log for "Last cache login" and > displays the date/time, but it doesn't effectively tell me what my current > login is. > > Anyone know a way to tell? I know the XP firewall has settings for a domain > profile, is it using a domain profile for all cached logins? > > Thanks In Advance for pointers! > > > > ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ > ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ > ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~
