VBScript Query Local Unit for IP Subnet / related AD Logon Server?
Posted on 2011-05-05
In an off-the-wall question... Is it possible to have a vbscript query the local machine's IP address and compare the value against AD sites and services - with the environmental variable %logonserver% to see if it's being serviced by the correct logon server.
This is of course a direct attempt to ~NOT~ have to log in manually to a machine and type "echo %LOGONSERVER%"
If this is at all possible, a script that could be run against the local machine would be more than appreciated, as I would then modify it for a login-script for our purposes. (We're going to be implementing some basic printer mapping / etc. based off of this information).
Any information that can be provided would be greatly appreciated.