Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Logon Script

Status
Not open for further replies.

jbaumann

MIS
Joined
Jan 10, 2005
Messages
1
Location
US
In a windows enviroment is there a way to have the logon script get the default gateway address?
I have 12 different gw addr that a user could use. I want the logon script to detect the default gw and set the default server path used for programs based on the gw.

Thanks for you help...
 
Win32::AdminMisc, or Win32::NetResource would be worth looking into

HTH
--Paul

cigless ...
 
You could also do it in the script

cmd>ipconfig > config.txt

and then read the file, and select from there

--Paul

cigless ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top