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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBS or Batch File?

Status
Not open for further replies.

KevinBugg

Technical User
Feb 8, 2008
65
Hi,

I need to create a logon script which runs at logon for a user. The script needs to detect the ip address of the users machine then run the relevant batch file for that site.

How can i do this with a batch file preferably or vb script? I have had issues with vb scripts running at logon hence the bat file preference. This is to run from a windows 2003 server on an xp client.

Thanks
Kev
 
not using vbscript, you can get the machines AD site using
nltest /dsgetsite
will be easier than the ip mapping to site? unless you mean site in some other context
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top