DougInCanada
Technical User
Hi Folks,
I'm running a segment in my little login script for laptops to determine if they have been authenticated to a DC at that specific login.
Unfortunately, if I run
LogonServer = WSHShell.Environment("PROCESS").Item("LOGONSERVER")
it just tells me the logon server that originally authenticated that network logon, but not if the user is currently connected to the network and authenticated to a DC.
I'd like to validate if the user is connected to the same network as the domain that user is currently logging in to at each login attempt, so either I :
- check to see if the computer can connect to the DC at logon
or
- refresh WSHShell.Environment("PROCESS").Item("LOGONSERVER") every logon.
or possibly some other approach, if someone can think of one.
Help on this would be much appreciated, as it would resolve a recurring issue we're presently experiencing.
Regards,
DougInCanada
I'm running a segment in my little login script for laptops to determine if they have been authenticated to a DC at that specific login.
Unfortunately, if I run
LogonServer = WSHShell.Environment("PROCESS").Item("LOGONSERVER")
it just tells me the logon server that originally authenticated that network logon, but not if the user is currently connected to the network and authenticated to a DC.
I'd like to validate if the user is connected to the same network as the domain that user is currently logging in to at each login attempt, so either I :
- check to see if the computer can connect to the DC at logon
or
- refresh WSHShell.Environment("PROCESS").Item("LOGONSERVER") every logon.
or possibly some other approach, if someone can think of one.
Help on this would be much appreciated, as it would resolve a recurring issue we're presently experiencing.
Regards,
DougInCanada