Multimatic
asked on
Script or batch file to identify if travelling laptop is connected to it's local domain
I need a way to identify if a travelling user is connected to their local domain before running their login script. This is to avoid installing software and updates across slow WAN links.
Perhaps identifcation by checking AD OU or subnet?
Cheers
Lachlan
Perhaps identifcation by checking AD OU or subnet?
Cheers
Lachlan
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Super fast response and a very simple yet effective solution!
Cheers
Cheers
Here's an example of a routine you could use in a .bat to determine the subnet by using the default gateway
Open in new window