Hi
The logon script we use at work works great when users are at the
office. But when at home and connected to our network through a VPN
tunnel (Netscreen Remote tunnel), the script is unable to detect the
domain name, the current user and the current computer. Currently we
detect those using the following VBScript code (cleaned up to save
space):
--------------------------------------
Dim strDomain
Dim objADSystemInfo: Set objADSystemInfo =
CreateObject("ADSystemInfo")
' AD info
strDomain = objADSystemInfo.DomainDNSName
' User account
Set objUser = GetObject("LDAP://" & strDomain & "/" &
objADSystemInfo.UserName)
' Computer account
Set objComputer = GetObject("LDAP://" & strDomain & "/" &
objADSystemInfo.ComputerName)
--------------------------------------
Is there another way to detect these things?
Best regards,
Egil.